/* =========================================================
   STAFFIX AI — AUTHENTICATION DESIGN SYSTEM
   Login + Register + Future Auth Pages
   ========================================================= */


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    position: relative;
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;

    padding: 72px 0;

    overflow: hidden;
}


.auth-page__container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(320px, 1fr);

    gap: 80px;

    align-items: center;
}


.auth-page__container--login {
    grid-template-columns: minmax(0, 540px) minmax(320px, 1fr);

    gap: 96px;
}


/* =========================================================
   BACKGROUND GLOWS
   ========================================================= */

.auth-page__glow {
    position: absolute;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(110px);

    opacity: 0.16;
}


.auth-page__glow--one {
    top: -220px;
    left: -180px;

    background: rgba(49, 140, 255, 0.55);
}


.auth-page__glow--two {
    right: -220px;
    bottom: -240px;

    background: rgba(112, 76, 255, 0.45);
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    position: relative;

    width: 100%;

    padding: 42px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 25, 39, 0.96),
            rgba(9, 14, 25, 0.97)
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}


.auth-card--login {
    padding: 44px;
}


.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(80, 160, 255, 0.55),
            transparent
        );

    opacity: 0.8;
}


/* =========================================================
   AUTH HEADER
   ========================================================= */

.auth-card__header {
    margin-bottom: 32px;
}


.auth-brand {
    display: inline-flex;

    align-items: center;
    gap: 11px;

    margin-bottom: 28px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;
}


.auth-brand:hover {
    color: #ffffff;
}


.auth-card__eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #65aaff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.auth-card__header h1 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 46px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.045em;
}


.auth-card__header p {
    max-width: 520px;

    margin: 0;

    color: rgba(220, 228, 240, 0.68);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   AUTH FORM
   ========================================================= */

.auth-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.auth-form__row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}


.form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-field > label {
    color: rgba(240, 245, 255, 0.90);

    font-size: 13px;

    font-weight: 600;
}


.form-field__label-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


.form-input {
    width: 100%;

    min-height: 50px;

    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 12px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}


.form-input::placeholder {
    color: rgba(220, 228, 240, 0.34);
}


.form-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}


.form-input:focus {
    border-color: rgba(70, 150, 255, 0.75);

    background:
        rgba(255, 255, 255, 0.055);

    box-shadow:
        0 0 0 4px rgba(49, 140, 255, 0.10),
        0 8px 25px rgba(0, 0, 0, 0.12);
}


.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    -webkit-box-shadow:
        0 0 0 1000px #111927 inset;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* =========================================================
   PASSWORD FIELD
   ========================================================= */

.password-field {
    position: relative;
}


.password-field .form-input {
    padding-right: 72px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: rgba(150, 190, 240, 0.85);

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: color 160ms ease;
}


.password-toggle:hover {
    color: #ffffff;
}


.form-hint {
    color: rgba(220, 228, 240, 0.42);

    font-size: 12px;

    line-height: 1.5;
}


.form-error {
    color: #ff8d9c;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   LINKS
   ========================================================= */

.form-link {
    color: #72b2ff;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}


.form-link:hover {
    color: #a7d0ff;
}


.form-link--strong {
    font-size: 13px;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.remember-me {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    color: rgba(220, 228, 240, 0.62);

    font-size: 12px;

    cursor: pointer;

    user-select: none;
}


.remember-me input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.remember-me__box {
    position: relative;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    border-radius: 5px;

    background: rgba(255, 255, 255, 0.035);

    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}


.remember-me input:checked + .remember-me__box {
    border-color: #4d9cff;

    background: #318cff;

    box-shadow:
        0 0 0 4px rgba(49, 140, 255, 0.10);
}


.remember-me input:checked + .remember-me__box::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 4px;
    height: 8px;

    border:
        solid #ffffff;

    border-width:
        0 2px 2px 0;

    transform: rotate(45deg);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.auth-form__submit {
    width: 100%;

    justify-content: center;

    margin-top: 4px;
}


.auth-form__submit:hover {
    transform: translateY(-1px);
}


/* =========================================================
   FLASH / AUTH MESSAGES
   ========================================================= */

.auth-messages {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 22px;
}


.flash {
    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.flash--success {
    border: 1px solid rgba(60, 210, 150, 0.18);

    background: rgba(60, 210, 150, 0.08);

    color: #8ff0c3;
}


.flash--error {
    border: 1px solid rgba(255, 90, 110, 0.18);

    background: rgba(255, 90, 110, 0.08);

    color: #ffabb7;
}


/* =========================================================
   SOCIAL LOGIN
   ========================================================= */

.social-login {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 22px;
}


.social-login__button {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);

    color: rgba(240, 245, 255, 0.76);

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;
}


.social-login__button:disabled {
    cursor: not-allowed;

    opacity: 0.62;
}


.social-login__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;
}


.social-login__icon--linkedin {
    font-size: 10px;
}


.social-login__soon {
    position: absolute;

    top: 7px;
    right: 8px;

    padding: 2px 5px;

    border-radius: 5px;

    background: rgba(49, 140, 255, 0.10);

    color: #6eaeff;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* =========================================================
   DIVIDERS
   ========================================================= */

.auth-divider {
    display: flex;

    align-items: center;

    gap: 14px;

    margin: 4px 0 22px;

    color: rgba(220, 228, 240, 0.35);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.auth-divider::before,
.auth-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background:
        rgba(255, 255, 255, 0.07);
}


/* =========================================================
   AUTH BOTTOM
   ========================================================= */

.auth-card__bottom {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 26px;

    color: rgba(220, 228, 240, 0.48);

    font-size: 12px;

    text-align: center;
}


.auth-card__divider {
    display: flex;

    align-items: center;

    gap: 14px;

    margin: 28px 0 18px;

    color: rgba(220, 228, 240, 0.40);

    font-size: 11px;

    text-align: center;
}


.auth-card__divider::before,
.auth-card__divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background:
        rgba(255, 255, 255, 0.07);
}


.auth-card__secondary-action {
    width: 100%;

    justify-content: center;
}


.auth-card__legal {
    margin: 18px auto 0;

    max-width: 440px;

    color: rgba(220, 228, 240, 0.34);

    font-size: 11px;

    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.auth-security-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: rgba(220, 228, 240, 0.38);

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}


.auth-security-note__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: rgba(60, 210, 150, 0.10);

    color: #7be6b5;

    font-size: 10px;

    font-weight: 800;
}


/* =========================================================
   RIGHT SIDE / ASIDE
   ========================================================= */

.auth-page__aside {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.auth-page__aside--login {
    max-width: 560px;
}


.auth-aside__heading {
    margin-bottom: 8px;
}


.auth-aside__heading h2 {
    margin: 10px 0 14px;

    color: #ffffff;

    font-size: clamp(30px, 4vw, 44px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.04em;
}


.auth-aside__heading p {
    max-width: 510px;

    margin: 0;

    color: rgba(220, 228, 240, 0.58);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.auth-benefit {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}


.auth-benefit:hover {
    transform: translateY(-2px);

    border-color: rgba(80, 160, 255, 0.18);

    background: rgba(255, 255, 255, 0.035);
}


.auth-benefit--compact {
    padding: 15px 16px;
}


.auth-benefit__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 1px solid rgba(80, 160, 255, 0.14);

    border-radius: 11px;

    background: rgba(49, 140, 255, 0.08);

    color: #72b2ff;

    font-size: 15px;
}


.auth-benefit strong {
    display: block;

    margin-bottom: 5px;

    color: rgba(245, 248, 255, 0.94);

    font-size: 13px;

    font-weight: 700;
}


.auth-benefit p {
    margin: 0;

    color: rgba(220, 228, 240, 0.46);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   WORKSPACE PREVIEW
   ========================================================= */

.auth-workspace-preview {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 25, 40, 0.92),
            rgba(8, 13, 24, 0.94)
        );

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22);
}


.auth-workspace-preview__top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 15px 17px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.auth-workspace-preview__brand {
    display: flex;

    align-items: center;

    gap: 9px;

    color: rgba(245, 248, 255, 0.82);

    font-size: 12px;

    font-weight: 700;
}


.auth-workspace-preview__content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    padding: 18px;
}


.workspace-mini-stat {
    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);
}


.workspace-mini-stat span {
    display: block;

    margin-bottom: 7px;

    color: rgba(220, 228, 240, 0.42);

    font-size: 10px;
}


.workspace-mini-stat strong {
    color: #ffffff;

    font-size: 24px;

    font-weight: 800;

    letter-spacing: -0.03em;
}


.workspace-activity {
    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;

    border: 1px solid rgba(60, 210, 150, 0.12);

    border-radius: 12px;

    background: rgba(60, 210, 150, 0.045);
}


.workspace-activity__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 10px;

    background: rgba(60, 210, 150, 0.10);

    color: #79e4b2;

    font-size: 13px;

    font-weight: 800;
}


.workspace-activity strong {
    display: block;

    margin-bottom: 3px;

    color: rgba(245, 248, 255, 0.88);

    font-size: 11px;
}


.workspace-activity span {
    display: block;

    color: rgba(220, 228, 240, 0.40);

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .auth-page__container,
    .auth-page__container--login {
        grid-template-columns: 1fr;

        max-width: 620px;

        gap: 44px;
    }


    .auth-page__aside {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 14px;

        max-width: none;
    }


    .auth-page__aside--login {
        display: block;
    }


    .auth-aside__heading {
        margin-bottom: 20px;
    }


    .auth-workspace-preview {
        margin-bottom: 14px;
    }


    .auth-benefit--compact {
        display: flex;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .auth-page {
        min-height: auto;

        padding: 42px 0 60px;
    }


    .auth-page__container,
    .auth-page__container--login {
        width: min(
            calc(100% - 28px),
            620px
        );

        gap: 32px;
    }


    .auth-card,
    .auth-card--login {
        padding: 28px 20px;

        border-radius: 20px;
    }


    .auth-card__header {
        margin-bottom: 26px;
    }


    .auth-brand {
        margin-bottom: 24px;
    }


    .auth-card__header h1 {
        font-size: 31px;
    }


    .auth-card__header p {
        font-size: 13px;
    }


    .auth-form__row {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .social-login {
        grid-template-columns: 1fr;
    }


    .social-login__button {
        justify-content: flex-start;

        padding-left: 16px;
    }


    .auth-page__aside {
        grid-template-columns: 1fr;
    }


    .auth-aside__heading h2 {
        font-size: 30px;
    }


    .auth-workspace-preview__content {
        grid-template-columns: 1fr 1fr;
    }


    .auth-card__bottom {
        flex-direction: column;

        gap: 5px;
    }


    .auth-card__legal {
        font-size: 10px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .auth-card,
    .auth-card--login {
        padding: 24px 17px;
    }


    .auth-card__header h1 {
        font-size: 28px;
    }


    .form-input {
        min-height: 48px;

        font-size: 13px;
    }


    .auth-workspace-preview__content {
        grid-template-columns: 1fr;
    }


    .workspace-activity {
        grid-column: auto;
    }


    .auth-security-note {
        align-items: flex-start;

        text-align: left;
    }

}