/* =========================================================
   DIVINE INTERNATIONAL SCHOOLS ABA
   LOGIN PAGE
========================================================= */


/* =========================================================
   1. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --navy: #061735;
    --navy-light: #0b234a;
    --navy-lighter: #123365;

    --gold: #c6a15b;
    --gold-light: #ddc48b;

    --cream: #f8f7f3;
    --white: #ffffff;

    --text: #12213d;
    --muted: #7b8494;

    --border: #e1e4e9;

}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    background: var(--cream);

    color: var(--text);

}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


/* =========================================================
   2. MAIN PAGE
========================================================= */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 1fr 1fr;

}


/* =========================================================
   3. LEFT BRAND SECTION
========================================================= */

.login-brand-section {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:

        linear-gradient(
            135deg,
            rgba(6, 23, 53, 0.98),
            rgba(6, 23, 53, 0.72)
        );
        /* ),

        url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1800&q=90")
        center / cover; */

}


.login-brand-section::before {

    content: "";

    position: absolute;

    top: -150px;
    left: -150px;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(198, 161, 91, 0.25);

    border-radius: 50%;

}


.login-brand-section::after {

    content: "";

    position: absolute;

    right: -200px;
    bottom: -200px;

    width: 600px;
    height: 600px;

    border: 1px solid rgba(198, 161, 91, 0.18);

    border-radius: 50%;

}


.brand-overlay {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 20% 80%,
            rgba(198, 161, 91, 0.15),
            transparent 35%
        );

}


.brand-content {

    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 55px 8vw 40px;

}


/* =========================================================
   4. BRAND LOGO
========================================================= */

.brand-logo,
.mobile-logo {

    display: flex;

    align-items: center;

    gap: 14px;

}


.logo-symbol {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    border: 1px solid var(--gold);

    color: var(--gold);

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.08em;

}


.logo-text {

    display: flex;

    flex-direction: column;

}


.logo-text strong {

    color: white;

    font-size: 0.9rem;

    letter-spacing: 0.18em;

}


.logo-text span {

    margin-top: 4px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.55rem;

    letter-spacing: 0.12em;

}


/* =========================================================
   5. BRAND MESSAGE
========================================================= */

.brand-message {

    max-width: 580px;

}


.eyebrow,
.section-label {

    display: block;

    margin-bottom: 25px;

    color: var(--gold);

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.2em;

}


.brand-message h1 {

    margin-bottom: 25px;

    color: white;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(3rem, 5vw, 5.5rem);

    font-weight: 500;

    line-height: 1.05;

}


.brand-message h1 em {

    color: var(--gold);

    font-style: normal;

}


.brand-message p {

    max-width: 420px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 1rem;

    line-height: 1.8;

}


.brand-footer {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 0.65rem;

}


/* =========================================================
   6. LOGIN SECTION
========================================================= */

.login-section {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;

    background: var(--cream);

}


.login-container {

    width: min(100%, 470px);

}


/* =========================================================
   7. MOBILE LOGO
========================================================= */

.mobile-logo {

    display: none;

    margin-bottom: 60px;

}


.mobile-logo .logo-text strong {

    color: var(--navy);

}


.mobile-logo .logo-text span {

    color: var(--muted);

}


/* =========================================================
   8. LOGIN HEADER
========================================================= */

.login-header {

    margin-bottom: 38px;

}


.login-header h2 {

    margin-bottom: 12px;

    color: var(--navy);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(2.4rem, 4vw, 3.5rem);

    font-weight: 500;

    line-height: 1.1;

}


.login-header p {

    color: var(--muted);

    font-size: 0.9rem;

}


/* =========================================================
   9. ERROR ALERT
========================================================= */

.login-alert {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 25px;

    padding: 15px;

    border-left: 3px solid #bd4b43;

    background: #fff3f1;

}


.alert-icon {

    width: 22px;
    height: 22px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #bd4b43;

    color: white;

    font-size: 0.7rem;

    font-weight: 700;

}


.login-alert strong {

    display: block;

    margin-bottom: 3px;

    color: #8f332d;

    font-size: 0.8rem;

}


.login-alert p {

    color: #a65d56;

    font-size: 0.72rem;

}


/* =========================================================
   10. FORM
========================================================= */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 24px;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.form-group label {

    color: var(--text);

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.04em;

}


.label-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.forgot-password {

    color: var(--gold);

    font-size: 0.7rem;

    font-weight: 700;

}


.forgot-password:hover {

    color: var(--navy);

}


/* =========================================================
   11. INPUTS
========================================================= */

.input-wrapper {

    position: relative;

    display: flex;

    align-items: center;

}


.input-wrapper input {

    width: 100%;

    height: 58px;

    padding: 0 50px;

    border: 1px solid var(--border);

    outline: none;

    background: white;

    color: var(--text);

    font-size: 0.85rem;

    transition: 0.3s ease;

}


.input-wrapper input::placeholder {

    color: #aeb4bd;

}


.input-wrapper input:focus {

    border-color: var(--gold);

    box-shadow:

        0 0 0 4px
        rgba(198, 161, 91, 0.12);

}


.input-icon {

    position: absolute;

    left: 17px;

    z-index: 2;

    width: 19px;

    height: 19px;

    color: #9ca5b1;

}


.input-icon svg {

    width: 100%;
    height: 100%;

}


.password-toggle {

    position: absolute;

    right: 15px;

    z-index: 2;

    width: 28px;
    height: 28px;

    display: grid;

    place-items: center;

    border: none;

    background: transparent;

    color: #9ca5b1;

}


.password-toggle:hover {

    color: var(--navy);

}


.password-toggle svg {

    width: 18px;
    height: 18px;

}


.eye-closed {

    display: none;

}


.password-toggle.showing .eye-open {

    display: none;

}


.password-toggle.showing .eye-closed {

    display: block;

}


/* =========================================================
   12. REMEMBER ME
========================================================= */

.form-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.remember-me {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-size: 0.75rem;

    cursor: pointer;

}


.remember-me input {

    position: absolute;

    opacity: 0;

}


.custom-checkbox {

    width: 17px;
    height: 17px;

    border: 1px solid #cdd2d9;

    background: white;

    transition: 0.2s ease;

}


.remember-me input:checked + .custom-checkbox {

    border-color: var(--navy);

    background: var(--navy);

}


.remember-me input:checked + .custom-checkbox::after {

    content: "✓";

    display: grid;

    place-items: center;

    height: 100%;

    color: white;

    font-size: 0.65rem;

}


/* =========================================================
   13. LOGIN BUTTON
========================================================= */

.login-button {

    position: relative;

    width: 100%;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    border: none;

    background: var(--navy);

    color: white;

    font-size: 0.8rem;

    font-weight: 700;

    transition: 0.3s ease;

}


.login-button:hover {

    background: var(--navy-light);

    transform: translateY(-2px);

    box-shadow:

        0 12px 25px
        rgba(6, 23, 53, 0.18);

}


.button-arrow {

    color: var(--gold);

    font-size: 1.2rem;

    transition: transform 0.3s ease;

}


.login-button:hover .button-arrow {

    transform: translateX(5px);

}


.button-loader {

    display: none;

    width: 18px;
    height: 18px;

    border: 2px solid rgba(255, 255, 255, 0.3);

    border-top-color: white;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;

}


.login-button.loading .button-text,

.login-button.loading .button-arrow {

    display: none;

}


.login-button.loading .button-loader {

    display: block;

}


@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}


/* =========================================================
   14. DIVIDER
========================================================= */

.login-divider {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 35px 0 25px;

}


.login-divider::before,

.login-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);

}


.login-divider span {

    color: #a5acb6;

    font-size: 0.58rem;

    font-weight: 700;

    letter-spacing: 0.15em;

}


/* =========================================================
   15. FOOTER LINK
========================================================= */

.login-footer {

    text-align: center;

}


.login-footer a {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--muted);

    font-size: 0.75rem;

    transition: 0.3s ease;

}


.login-footer a:hover {

    color: var(--navy);

}


.login-footer a span {

    color: var(--gold);

    font-size: 1rem;

}


/* =========================================================
   16. RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .login-page {

        grid-template-columns: 0.8fr 1.2fr;

    }

    .brand-content {

        padding: 45px;

    }

    .login-section {

        padding: 45px;

    }

}


@media (max-width: 750px) {

    .login-page {

        display: block;

    }

    .login-brand-section {

        display: none;

    }

    .login-section {

        min-height: 100vh;

        padding: 35px 25px;

    }

    .mobile-logo {

        display: flex;

    }

}


@media (max-width: 480px) {

    .login-section {

        padding: 25px 20px;

    }

    .mobile-logo {

        margin-bottom: 45px;

    }

    .login-header {

        margin-bottom: 30px;

    }

    .login-header h2 {

        font-size: 2.4rem;

    }

}