
/* =========================================
   PIXERR AUTHENTICATION DESIGN
========================================= */

:root {

    --auth-bg: #080f19;
    --auth-panel: #111e2e;
    --auth-input: #0d1724;
    --auth-border: #29394d;
    --auth-cyan: #00c8f0;
    --auth-white: #f5f8fc;
    --auth-muted: #a8b9cc;

}

*,
*::before,
*::after {

    box-sizing: border-box;

}

body.auth-page {

    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-white);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;

}

.auth-page a {

    text-decoration: none;

}

.auth-page button,
.auth-page input {

    font: inherit;

}

.auth-page [hidden] {

    display: none !important;

}


/* =========================================
   MAIN LOGIN LAYOUT
========================================= */

.auth-layout {

    display: grid;
    grid-template-columns: 58% 42%;
    min-height: 100vh;
    min-height: 100dvh;

}

.auth-form-panel {

    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 35px 55px 25px;

}


/* =========================================
   LOGO & TOPBAR
========================================= */

.auth-topbar {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

}

.auth-logo {

    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--auth-white);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;

}

.auth-logo img {

    display: block;
    width: 39px;
    height: 39px;
    object-fit: contain;

}

.auth-logo-dot {

    color: var(--auth-cyan);

}

.auth-home-link {

    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 500;
    transition: color .25s ease;

}

.auth-home-link:hover {

    color: var(--auth-cyan);

}


/* =========================================
   FORM WRAPPER & HEADINGS
========================================= */

.auth-form-wrapper {

    width: 100%;
    max-width: 450px;
    margin: auto;
    padding: 55px 0;

}

.auth-heading {

    margin-bottom: 32px;

}

.auth-eyebrow {

    display: inline-block;
    margin-bottom: 15px;
    color: var(--auth-cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;

}

.auth-heading h1 {

    margin: 0 0 14px;
    font-size: clamp(36px, 4vw, 49px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;

}

.auth-heading h1 span {

    color: var(--auth-cyan);

}

.auth-heading p {

    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.8;

}


/* =========================================
   FORM INPUTS
========================================= */

.auth-form {

    display: flex;
    flex-direction: column;
    gap: 22px;

}

.auth-field {

    display: flex;
    flex-direction: column;
    gap: 10px;

}

.auth-field label {

    color: var(--auth-white);
    font-size: 13px;
    font-weight: 600;

}

.auth-field input {

    width: 100%;
    min-height: 54px;
    padding: 15px 17px;
    background: var(--auth-input);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    color: var(--auth-white);
    font-size: 14px;
    transition: border-color .25s ease,
                box-shadow .25s ease;

}

.auth-field input::placeholder {

    color: #8294aa;
    opacity: 1;

}

.auth-field input:hover {

    border-color: #41556d;

}

.auth-field input:focus {

    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 3px rgba(0, 200, 240, .09);

}

.auth-field input:-webkit-autofill {

    -webkit-text-fill-color: var(--auth-white);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-input) inset;
    caret-color: var(--auth-white);

}


/* =========================================
   PASSWORD VISIBILITY
========================================= */

.auth-password-wrapper {

    position: relative;

}

.auth-password-wrapper input {

    padding-right: 55px;

}

.auth-password-toggle {

    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 5px;
    background: transparent;
    border: none;
    color: var(--auth-muted);
    cursor: pointer;

}

.auth-password-toggle svg {

    width: 21px;
    height: 21px;

}

.auth-password-toggle:hover {

    color: var(--auth-cyan);

}


/* =========================================
   FORM LINKS
========================================= */

.auth-form-options {

    display: flex;
    justify-content: flex-end;
    margin-top: -7px;

}

.auth-text-link {

    color: var(--auth-cyan);
    font-size: 13px;
    font-weight: 600;
    transition: color .25s ease;

}

.auth-text-link:hover {

    color: #8beaff;
    text-decoration: underline;

}


/* =========================================
   PRIMARY BUTTON
========================================= */

.auth-primary-btn {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 15px 25px;
    background: var(--auth-cyan);
    color: #06111b;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;

}

.auth-primary-btn span {

    font-size: 20px;
    transition: transform .3s ease;

}

.auth-primary-btn:hover:not(:disabled) {

    background: var(--auth-cyan);
    color: #06111b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 240, .3);

}

.auth-primary-btn:hover span {

    transform: translateX(4px);

}

.auth-primary-btn:disabled {

    opacity: .6;
    cursor: wait;

}


/* =========================================
   DIVIDER
========================================= */

.auth-divider {

    display: flex;
    align-items: center;
    gap: 15px;
    margin: 28px 0;

}

.auth-divider span {

    height: 1px;
    flex: 1;
    background: var(--auth-border);

}

.auth-divider p {

    margin: 0;
    color: #8195ad;
    font-size: 12px;

}


/* =========================================
   GOOGLE LOGIN
========================================= */

.auth-google-btn {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 53px;
    padding: 14px 20px;
    background: var(--auth-panel);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    color: var(--auth-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: .3s ease;

}

.auth-google-btn:hover {

    background: #172638;
    border-color: #50637a;
    transform: translateY(-2px);

}


/* =========================================
   REGISTRATION LINK
========================================= */

.auth-register-text {

    margin: 25px 0 0;
    text-align: center;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.8;

}

.auth-register-text a {

    margin-left: 4px;

}


/* =========================================
   RIGHT BRAND PANEL
========================================= */

.auth-brand-panel {

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    background: #111e2e;
    border-left: 1px solid var(--auth-border);

}

.auth-brand-image {

    position: absolute;
    inset: 0;

    background:

        linear-gradient(
            180deg,
            rgba(8, 15, 25, .05) 0%,
            rgba(8, 15, 25, .15) 25%,
            rgba(8, 15, 25, .8) 55%,
            #0b1521 90%
        ),

        url("images/hero-home.jpg");

    background-size: cover;
    background-position: center;

}

.auth-brand-content {

    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 260px 55px 55px;

}

.auth-brand-content h2 {

    margin: 0 0 20px;
    color: var(--auth-white);
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.25;
    letter-spacing: -1.4px;
    font-weight: 800;

}

.auth-brand-content p {

    margin: 0;
    color: #b8c8da;
    font-size: 14px;
    line-height: 1.9;

}


/* =========================================
   BRAND FEATURES
========================================= */

.auth-brand-features {

    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;

}

.auth-brand-feature {

    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e9f2;
    font-size: 13px;
    font-weight: 500;

}

.auth-check {

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    background: rgba(0, 200, 240, .1);
    border: 1px solid rgba(0, 200, 240, .3);
    border-radius: 50%;
    color: var(--auth-cyan);
    font-size: 12px;

}


/* =========================================
   BRAND STATISTICS
========================================= */

.auth-brand-stats {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);

}

.auth-brand-stats strong {

    display: block;
    margin-bottom: 8px;
    color: var(--auth-cyan);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.8px;

}

.auth-brand-stats span {

    display: block;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.6;

}


/* =========================================
   FORM STATUS
========================================= */

.auth-status {

    padding: 13px 15px;
    background: rgba(0, 200, 240, .07);
    border: 1px solid rgba(0, 200, 240, .2);
    border-radius: 9px;
    color: #8beaff;
    font-size: 13px;
    line-height: 1.7;

}


/* =========================================
   FOOTER
========================================= */

.auth-footer {

    color: #8195ad;
    font-size: 11px;
    text-align: center;
    line-height: 1.7;

}


/* =========================================
   FORGOT PASSWORD PAGE
========================================= */

.auth-reset-page {

    background:

        radial-gradient(
            ellipse at 50% 0%,
            rgba(0, 200, 240, .07),
            transparent 60%
        ),

        var(--auth-bg) !important;

}

.auth-reset-layout {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 45px 20px;
    gap: 35px;

}

.auth-reset-logo {

    font-size: 36px;

}

.auth-reset-card {

    width: 100%;
    max-width: 470px;
    padding: 40px;
    background: var(--auth-panel);
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .22);

}

.auth-reset-icon {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 25px;
    background: rgba(0, 200, 240, .08);
    border: 1px solid rgba(0, 200, 240, .2);
    border-radius: 18px;
    color: var(--auth-cyan);

}

.auth-reset-icon svg {

    width: 30px;
    height: 30px;

}

.auth-reset-heading {

    margin-bottom: 30px;
    text-align: center;

}

.auth-reset-heading .auth-eyebrow {

    margin-bottom: 12px;

}

.auth-reset-heading h1 {

    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1.2;

}

.auth-reset-heading p {

    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.85;

}

.auth-back-link {

    display: block;
    margin-top: 28px;
    color: var(--auth-cyan);
    font-size: 13px;
    font-weight: 600;
    text-align: center;

}

.auth-back-link:hover {

    text-decoration: underline;

}


/* =========================================
   KEYBOARD ACCESSIBILITY
========================================= */

.auth-page a:focus-visible,
.auth-page button:focus-visible {

    outline: 2px solid var(--auth-cyan);
    outline-offset: 4px;

}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .auth-form-panel {

        padding: 30px 35px 25px;

    }

    .auth-brand-content {

        padding: 230px 35px 40px;

    }

    .auth-brand-stats strong {

        font-size: 24px;

    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .auth-layout {

        grid-template-columns: 1fr;

    }

    .auth-brand-panel {

        display: none;

    }

    .auth-form-panel {

        min-height: 100vh;
        min-height: 100dvh;
        padding: 25px 24px;

    }

    .auth-form-wrapper {

        max-width: 450px;
        padding: 45px 0;

    }

    .auth-heading h1 {

        font-size: 39px;

    }

    .auth-field input {

        font-size: 16px;

    }

    .auth-reset-card {

        padding: 30px 25px;

    }

    .auth-reset-heading h1 {

        font-size: 29px;

    }

}


/* =========================================
   SMALL MOBILE DEVICES
========================================= */

@media (max-width: 380px) {

    .auth-form-panel {

        padding: 20px 17px;

    }

    .auth-logo {

        font-size: 27px;

    }

    .auth-logo img {

        width: 32px;
        height: 32px;

    }

    .auth-home-link {

        font-size: 10px;

    }

    .auth-heading h1 {

        font-size: 34px;

    }

    .auth-reset-card {

        padding: 28px 20px;

    }

    .auth-reset-heading h1 {

        font-size: 26px;

    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition: none !important;
        animation: none !important;

    }

}
