/* Login form */
.form-container.login-form-container{
    margin: 25px 0 0 0;
}
form.login-form{
    margin: 0;
}
form.login-form ul.errorlist ~ p:first-of-type{
    margin-top: 15px;
}
form.login-form ul.errorlist li{
    width: 100%;
}
form.login-form label{
    margin: 0;
    padding: 0 0 5px 0;
}
form.login-form a.forgot-password:hover,
.no-account-yet:hover{
    border-bottom: 1px solid #141414;
}

.no-account-yet-container{
    border-top: 1px solid rgba(0,0,0,0.2);
    margin: 25px 0 10px 0;
}

.no-account-yet-container p{
    margin-bottom: 0;
    position: absolute;
}

/* Modern login */
body.auth-page header,
body.auth-page footer {
    display: none !important;
}

body.auth-page main {
    min-height: 100vh;
    padding-top: 0;
}

body.auth-page #content {
    padding: 0;
}

body.auth-page .template-wrapper,
body.auth-page .template-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 16px;
    width: 100%;
}

.modern-auth-topbar {
    background: linear-gradient(90deg, #fff5e7 0%, #ffe8c7 100%);
    border: 1px solid #ffd6a1;
    border-radius: 14px;
    margin: 6px auto 10px;
    max-width: 1120px;
}

.modern-auth-topbar__inner {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 16px;
}

.modern-auth-topbar__logo {
    display: block;
    height: auto;
    max-width: 210px;
    width: 100%;
}

.modern-auth-topbar__tag {
    background: #f3a533;
    border-radius: 999px;
    color: #25364a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.modern-auth {
    align-items: stretch;
    background: #f6f8fb;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 170px);
    padding: 8px 0 12px;
}

.modern-auth__layout {
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0, 27, 56, 0.12);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    width: min(1120px, 100%);
}

.modern-auth__hero {
    background: #0d2540 url('/static/img/avitms-login-mood-optimized.jpg') center center / cover no-repeat;
    min-height: 500px;
    position: relative;
}

.modern-auth__hero-overlay {
    background: linear-gradient(160deg, rgba(5, 20, 38, 0.42) 0%, rgba(8, 36, 66, 0.2) 52%, rgba(15, 56, 94, 0.08) 100%);
    inset: 0;
    position: absolute;
}

.modern-auth__hero-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 36px;
    max-width: 390px;
    position: absolute;
    top: 28px;
    z-index: 1;
}

.modern-auth__logo {
    height: auto;
    max-width: 235px;
    width: 100%;
}

.modern-auth__hero-content h2 {
    color: #ffffff;
    font-size: 30px;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 4px 0 0;
}

.modern-auth__hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.modern-auth__panel {
    background: #ffffff;
    color: #14263c;
    padding: 34px 36px 26px;
}

.modern-auth__eyebrow {
    color: #ffbc4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.modern-auth__brand h1 {
    color: #0e2741;
    font-size: 34px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 10px;
}

.modern-auth__brand p {
    color: #556b85;
    margin: 0 0 12px;
}

.modern-auth__form-wrap {
    background: #f8fafc;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    padding: 14px 14px 8px;
}

.modern-auth__form p {
    margin-bottom: 9px;
}

.modern-auth__form label {
    color: #4a607a;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modern-auth__form input[type="text"],
.modern-auth__form input[type="email"],
.modern-auth__form input[type="password"] {
    background: #ffffff;
    border: 1px solid #cfdae7;
    border-radius: 10px;
    color: #102640;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

.modern-auth__form input[type="submit"] {
    background: linear-gradient(130deg, #f3a533 0%, #ffcb63 100%);
    border: 0;
    border-radius: 10px;
    color: #243245;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
    min-height: 40px;
    width: 100%;
}

.modern-auth__form a,
.modern-auth__footer a {
    border-bottom: 1px solid rgba(243, 165, 51, 0.7);
    color: #a05f00;
    text-decoration: none;
}

.modern-auth__footer {
    margin-top: 10px;
    text-align: center;
}

.modern-auth__footer .no-account-yet {
    border-bottom-style: dashed;
    font-size: 13px;
}

/* Other */
form.reset-password-form label,
form.create-account-form label{
    margin: 0 0 5px 0;
    padding: 0;
}

form.create-account-form input[type="submit"]{
    margin: 10px 0 0 0;
}

.form-container.create-account{
    margin: 25px 0 0 0;
}

form.create-account-form .errorlist li{
    display: block;
    width: 100%;
}
.btn-container.logged-out,
.btn-container.enrolment-done,
.btn-container.create-account-done{
    margin: 25px 0 0 0;
}
@media screen and (max-width: 760px){

    .form-container.login-form-container{
        margin: 15px 0 0 0;
    }
    .form-container.create-account{
        margin: 15px 0 0 0;
    }
    .no-account-yet-container{
        margin: 20px 0 15px 0;
    }
    .no-account-yet-container p{
        margin: 6px 0 0 0;
    }

    form.reset-password-form label,
    form.create-account-form label{
        margin: 0 0 3px 0;
    }
    .btn-container.logged-out,
    .btn-container.enrolment-done,
    .btn-container.create-account-done{
        margin: 15px 0 0 0;
    }

    .modern-auth {
        min-height: calc(100vh - 130px);
        padding: 8px 0;
    }

    .modern-auth-topbar {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .modern-auth-topbar__inner {
        padding: 8px 12px;
    }

    .modern-auth-topbar__logo {
        max-width: 165px;
    }

    .modern-auth-topbar__tag {
        font-size: 10px;
        letter-spacing: 0.08em;
        padding: 6px 9px;
    }

    .modern-auth__layout {
        display: block;
    }

    .modern-auth__hero {
        min-height: 210px;
    }

    .modern-auth__hero-content {
        left: 20px;
        max-width: 88%;
        top: 14px;
    }

    .modern-auth__logo {
        max-width: 200px;
    }

    .modern-auth__hero-content h2 {
        font-size: 24px;
    }

    .modern-auth__panel {
        border-radius: 0;
        padding: 22px 16px 18px;
    }

    .modern-auth__brand h1 {
        font-size: 32px;
    }

}


