/* ============================================================
   ELITESOCIALS
   REGISTER PAGE
   ============================================================ */

:root {
    --primary: #2563eb;
    --secondary: #1d4ed8;
    --accent: #60a5fa;

    --white: #ffffff;
    --black: #0f172a;

    --text: #172033;
    --text-soft: #64748b;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-light: #edf1f7;

    --background: #f8fafc;
    --surface: #ffffff;

    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 70px rgba(15, 23, 42, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


body {
    min-height: 100vh;

    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--background);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}


/* ============================================================
   PAGE LOADER
   ============================================================ */

.auth-loader {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}


.auth-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.auth-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 22px;
}


.auth-loader-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;

    animation:
        loaderLogo 1.3s ease-in-out infinite;
}


.auth-loader-mark {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--secondary)
        );

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
    font-weight: 800;

    box-shadow:
        0 12px 30px
        color-mix(
            in srgb,
            var(--primary) 28%,
            transparent
        );

    animation:
        loaderLogo 1.3s ease-in-out infinite;
}


.auth-loader-line {
    width: 85px;
    height: 3px;

    overflow: hidden;

    border-radius: 50px;

    background: #e8eef8;
}


.auth-loader-line span {
    display: block;

    width: 40%;
    height: 100%;

    border-radius: inherit;

    background: var(--primary);

    animation:
        loaderLine 1s ease-in-out infinite;
}


@keyframes loaderLogo {

    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.72;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes loaderLine {

    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(300%);
    }
}


/* ============================================================
   AUTH PAGE
   ============================================================ */

.auth-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 0.92fr)
        minmax(560px, 1.08fr);

    background: #ffffff;
}


/* ============================================================
   SHOWCASE
   ============================================================ */

.auth-showcase {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding: 48px 58px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #0b1d42 0%,
            #0f3275 48%,
            var(--primary) 100%
        );
}


.showcase-background {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


.showcase-grid {
    position: absolute;
    inset: 0;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.25) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.25) 1px,
            transparent 1px
        );

    background-size: 46px 46px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}


.showcase-glow {
    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    filter: blur(20px);

    pointer-events: none;
}


.showcase-glow-one {
    top: -180px;
    right: -160px;

    background:
        rgba(96, 165, 250, 0.24);
}


.showcase-glow-two {
    bottom: -220px;
    left: -200px;

    background:
        rgba(59, 130, 246, 0.20);
}


.showcase-circle {
    position: absolute;

    border: 1px solid rgba(255,255,255,0.09);

    border-radius: 50%;
}


.showcase-circle-one {
    width: 500px;
    height: 500px;

    right: -330px;
    top: 18%;
}


.showcase-circle-two {
    width: 340px;
    height: 340px;

    left: -250px;
    bottom: 10%;
}


/* ============================================================
   SHOWCASE CONTENT
   ============================================================ */

.showcase-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 680px;

    margin: auto;

    padding: 50px 0;
}


/* ============================================================
   SHOWCASE BRAND
   ============================================================ */

.showcase-brand {
    display: inline-flex;

    align-items: center;
    gap: 12px;

    margin-bottom: 105px;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.showcase-brand:hover {
    opacity: 0.9;

    transform:
        translateY(-1px);
}


.showcase-brand img {
    width: auto;
    height: 38px;

    max-width: 190px;

    object-fit: contain;
}


.showcase-brand-mark {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(255,255,255,0.18);

    border-radius: 11px;

    color: #ffffff;

    background:
        rgba(255,255,255,0.1);

    backdrop-filter: blur(12px);

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
    font-weight: 800;
}


.showcase-brand-name {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.6px;
}


.showcase-brand-name span {
    color: #93c5fd;
}


/* ============================================================
   SHOWCASE EYEBROW
   ============================================================ */

.showcase-eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    color: #bfdbfe;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.showcase-eyebrow span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #60a5fa;

    box-shadow:
        0 0 0 5px
        rgba(96,165,250,0.13);
}


/* ============================================================
   SHOWCASE HEADING
   ============================================================ */

.showcase-message h1 {
    max-width: 620px;

    margin-bottom: 24px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(
            42px,
            4vw,
            66px
        );

    line-height: 1.04;

    letter-spacing: -2.8px;

    font-weight: 800;
}


.showcase-message h1 span {
    display: block;

    color: #93c5fd;
}


.showcase-message p {
    max-width: 570px;

    color:
        rgba(255,255,255,0.70);

    font-size: 15px;
    line-height: 1.8;
}


/* ============================================================
   SHOWCASE FEATURES
   ============================================================ */

.showcase-features {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-top: 44px;
}


.showcase-feature {
    display: flex;

    align-items: center;

    gap: 14px;
}


.showcase-feature-icon {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(255,255,255,0.12);

    border-radius: 12px;

    color: #bfdbfe;

    background:
        rgba(255,255,255,0.07);

    backdrop-filter: blur(10px);

    font-size: 14px;
}


.showcase-feature div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.showcase-feature strong {
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}


.showcase-feature div span {
    color:
        rgba(255,255,255,0.55);

    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   SHOWCASE PROOF
   ============================================================ */

.showcase-proof {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 45px;
}


.proof-avatars {
    display: flex;

    padding-left: 7px;
}


.proof-avatars span {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: -7px;

    border: 2px solid #17479a;

    border-radius: 50%;

    color: #dbeafe;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #1e40af
        );

    font-size: 9px;
    font-weight: 800;
}


.proof-avatars span:nth-child(2) {
    background:
        linear-gradient(
            145deg,
            #3b82f6,
            #1d4ed8
        );
}


.proof-avatars span:nth-child(3) {
    background:
        linear-gradient(
            145deg,
            #60a5fa,
            #2563eb
        );
}


.proof-avatars span:nth-child(4) {
    background:
        linear-gradient(
            145deg,
            #1d4ed8,
            #172554
        );
}


.proof-avatars span:nth-child(5) {
    background:
        rgba(255,255,255,0.12);
}


.proof-details {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.proof-stars {
    display: flex;

    gap: 3px;

    color: #fbbf24;

    font-size: 9px;
}


.proof-details > span {
    color:
        rgba(255,255,255,0.55);

    font-size: 10px;
}


/* ============================================================
   SHOWCASE FOOTER
   ============================================================ */

.showcase-footer {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color:
        rgba(255,255,255,0.42);

    font-size: 10px;
}


.showcase-footer div {
    display: flex;

    gap: 20px;
}


.showcase-footer a {
    transition:
        color 0.2s ease;
}


.showcase-footer a:hover {
    color: #ffffff;
}


/* ============================================================
   FORM SIDE
   ============================================================ */

.auth-form-side {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f9fbff 100%
        );
}


.auth-form-container {
    width: 100%;
    max-width: 590px;

    padding: 60px 70px;
}


/* ============================================================
   MOBILE BRAND
   ============================================================ */

.mobile-auth-brand {
    display: none;

    align-items: center;
    gap: 10px;

    margin-bottom: 42px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


.mobile-auth-brand img {
    width: auto;
    height: 34px;

    max-width: 170px;
}


.mobile-auth-brand > span:last-child span {
    color: var(--primary);
}


.mobile-brand-mark {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--secondary)
        );

    font-size: 16px;
    font-weight: 800;
}


/* ============================================================
   AUTH HEADING
   ============================================================ */

.auth-heading {
    margin-bottom: 30px;
}


.auth-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.auth-heading h2 {
    margin-bottom: 9px;

    color: #111827;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 30px;
    line-height: 1.2;

    letter-spacing: -1.2px;

    font-weight: 800;
}


.auth-heading p {
    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   ALERTS
   ============================================================ */

.auth-alert {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 22px;

    padding: 13px 42px 13px 13px;

    border: 1px solid;

    border-radius: 12px;

    animation:
        alertIn 0.35s var(--ease);
}


.auth-alert-error {
    color: #991b1b;

    border-color: var(--danger-border);

    background: var(--danger-bg);
}


.auth-alert-success {
    color: #047857;

    border-color: var(--success-border);

    background: var(--success-bg);
}


.auth-alert-icon {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(255,255,255,0.65);

    font-size: 13px;
}


.auth-alert strong {
    display: block;

    margin-bottom: 2px;

    font-size: 11px;
    font-weight: 800;
}


.auth-alert p {
    font-size: 11px;
    line-height: 1.5;
}


.alert-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 7px;

    color: inherit;

    background: transparent;

    opacity: 0.55;

    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}


.alert-close:hover {
    opacity: 1;

    background:
        rgba(255,255,255,0.65);
}


@keyframes alertIn {

    from {
        opacity: 0;
        transform: translateY(-7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ============================================================
   FORM
   ============================================================ */

.auth-form {
    width: 100%;
}


.form-group {
    margin-bottom: 18px;
}


.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}


.form-row .form-group {
    min-width: 0;
}


.form-label {
    display: block;

    margin-bottom: 8px;

    color: #273449;

    font-size: 11px;
    font-weight: 700;
}


.form-label span {
    color: var(--primary);
}


.input-wrapper {
    position: relative;

    width: 100%;
}


.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    z-index: 2;

    width: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;

    font-size: 13px;

    pointer-events: none;

    transform:
        translateY(-50%);

    transition:
        color 0.2s ease;
}


.input-wrapper input {
    width: 100%;
    height: 48px;

    padding:
        0 44px 0 42px;

    border: 1px solid #dce3ed;

    border-radius: 11px;

    outline: none;

    color: #172033;

    background: #ffffff;

    font-size: 12px;

    box-shadow:
        0 1px 2px
        rgba(15,23,42,0.02);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-wrapper input::placeholder {
    color: #a4afbf;
}


.input-wrapper input:hover {
    border-color: #cbd5e1;
}


.input-wrapper input:focus {
    border-color: var(--primary);

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--primary) 10%,
            transparent
        );
}


.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}


/* ============================================================
   INVALID INPUT
   ============================================================ */

.input-wrapper.input-error input {
    border-color: #ef4444;

    background: #fffafa;

    box-shadow:
        0 0 0 3px
        rgba(239,68,68,0.07);
}


.input-wrapper.input-error .input-icon {
    color: #ef4444;
}


/* ============================================================
   VALID INPUT
   ============================================================ */

.input-wrapper.input-valid input {
    border-color: #10b981;
}


.input-wrapper.input-valid .input-icon {
    color: #10b981;
}


/* ============================================================
   INPUT HINT
   ============================================================ */

.input-hint {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 9px;
    line-height: 1.5;
}


/* ============================================================
   FIELD ERRORS
   ============================================================ */

.field-error {
    display: block;

    min-height: 0;

    margin-top: 5px;

    color: #dc2626;

    font-size: 9px;
    font-weight: 600;

    line-height: 1.4;
}


.field-error:not(:empty) {
    min-height: 13px;
}


/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 8px;

    color: #94a3b8;

    background: transparent;

    transform:
        translateY(-50%);

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.password-toggle:hover {
    color: var(--primary);

    background: #eff6ff;
}


.password-toggle:focus-visible {
    outline:
        2px solid
        var(--primary);

    outline-offset: 2px;
}


/* ============================================================
   PASSWORD STRENGTH
   ============================================================ */

.password-strength {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 7px;
}


.strength-bars {
    display: flex;

    gap: 3px;

    flex: 1;
}


.strength-bars span {
    height: 3px;

    flex: 1;

    border-radius: 20px;

    background: #e2e8f0;

    transition:
        background 0.25s ease;
}


.password-strength.weak
.strength-bars span:nth-child(1) {
    background: #ef4444;
}


.password-strength.fair
.strength-bars span:nth-child(1),
.password-strength.fair
.strength-bars span:nth-child(2) {
    background: #f59e0b;
}


.password-strength.good
.strength-bars span:nth-child(1),
.password-strength.good
.strength-bars span:nth-child(2),
.password-strength.good
.strength-bars span:nth-child(3) {
    background: #3b82f6;
}


.password-strength.strong
.strength-bars span {
    background: #10b981;
}


.strength-label {
    flex: 0 0 auto;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}


/* ============================================================
   PASSWORD REQUIREMENTS
   ============================================================ */

.password-requirements {
    margin-top: -3px;
    margin-bottom: 21px;

    padding: 13px 14px;

    border: 1px solid #e7edf5;

    border-radius: 11px;

    background: #f8fafc;
}


.requirements-title {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 9px;

    color: #475569;

    font-size: 9px;
    font-weight: 800;
}


.requirements-title i {
    color: var(--primary);

    font-size: 10px;
}


.requirements-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px 12px;
}


.requirement {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #94a3b8;

    font-size: 9px;

    transition:
        color 0.2s ease;
}


.requirement i {
    color: #cbd5e1;

    font-size: 5px;

    transition:
        color 0.2s ease;
}


.requirement.valid {
    color: #475569;
}


.requirement.valid i {
    color: #10b981;
}


/* ============================================================
   TERMS
   ============================================================ */

.terms-row {
    position: relative;

    margin-bottom: 19px;
}


.custom-checkbox {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    cursor: pointer;
}


.custom-checkbox input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.checkbox-box {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border: 1px solid #cbd5e1;

    border-radius: 5px;

    color: #ffffff;

    background: #ffffff;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.checkbox-box i {
    opacity: 0;

    font-size: 8px;

    transform: scale(0.5);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}


.custom-checkbox input:checked
+ .checkbox-box {
    border-color: var(--primary);

    background: var(--primary);
}


.custom-checkbox input:checked
+ .checkbox-box i {
    opacity: 1;

    transform: scale(1);
}


.custom-checkbox input:focus-visible
+ .checkbox-box {
    outline:
        2px solid
        color-mix(
            in srgb,
            var(--primary) 25%,
            transparent
        );

    outline-offset: 2px;
}


.terms-text {
    color: #7c8798;

    font-size: 10px;

    line-height: 1.65;
}


.terms-text a {
    color: var(--primary);

    font-weight: 700;

    transition:
        color 0.2s ease;
}


.terms-text a:hover {
    color: var(--secondary);

    text-decoration: underline;
}


/* ============================================================
   TERMS ERROR
   ============================================================ */

.terms-row.has-error
.checkbox-box {
    border-color: #ef4444;
}


.terms-row.has-error
.terms-text {
    color: #dc2626;
}


/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.auth-submit {
    position: relative;

    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    overflow: hidden;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 10px 24px
        color-mix(
            in srgb,
            var(--primary) 24%,
            transparent
        );

    font-size: 12px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.auth-submit::before {
    position: absolute;

    content: "";

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255,255,255,0.15) 50%,
            transparent 80%
        );

    transform: translateX(-100%);

    transition:
        transform 0.6s ease;
}


.auth-submit:hover::before {
    transform: translateX(100%);
}


.auth-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 30px
        color-mix(
            in srgb,
            var(--primary) 28%,
            transparent
        );
}


.auth-submit:active {
    transform: translateY(0);
}


.auth-submit:focus-visible {
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--primary) 25%,
            transparent
        );

    outline-offset: 3px;
}


.auth-submit:disabled {
    cursor: not-allowed;

    opacity: 0.65;

    transform: none;

    box-shadow:
        none;
}


.submit-text {
    position: relative;

    z-index: 2;
}


.submit-arrow {
    position: absolute;

    right: 14px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(255,255,255,0.12);

    font-size: 10px;

    transition:
        transform 0.2s ease;
}


.auth-submit:hover
.submit-arrow {
    transform: translateX(2px);
}


.submit-loading {
    display: none;

    align-items: center;

    gap: 8px;
}


.auth-submit.loading
.submit-text,
.auth-submit.loading
.submit-arrow {
    display: none;
}


.auth-submit.loading
.submit-loading {
    display: flex;
}


/* ============================================================
   AUTH SWITCH
   ============================================================ */

.auth-switch {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 21px;

    color: #94a3b8;

    font-size: 10px;
}


.auth-switch a {
    color: var(--primary);

    font-weight: 800;

    transition:
        color 0.2s ease;
}


.auth-switch a:hover {
    color: var(--secondary);

    text-decoration: underline;
}


/* ============================================================
   SECURITY NOTE
   ============================================================ */

.auth-security {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #edf1f6;
}


.security-icon {
    flex: 0 0 auto;

    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: var(--primary);

    background: #eff6ff;

    font-size: 11px;
}


.auth-security div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.auth-security strong {
    color: #475569;

    font-size: 9px;
    font-weight: 800;
}


.auth-security div span {
    color: #a0aabc;

    font-size: 8px;
    line-height: 1.5;
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
    opacity: 0;

    transform:
        translateY(12px);

    transition:
        opacity 0.55s var(--ease),
        transform 0.55s var(--ease);
}


[data-reveal].revealed {
    opacity: 1;

    transform:
        translateY(0);
}


.form-group:nth-child(1) {
    transition-delay: 0.03s;
}


.form-group:nth-child(2) {
    transition-delay: 0.06s;
}


.form-group:nth-child(3) {
    transition-delay: 0.09s;
}


.form-row .form-group:nth-child(1) {
    transition-delay: 0.12s;
}


.form-row .form-group:nth-child(2) {
    transition-delay: 0.15s;
}


/* ============================================================
   DARK THEME
   ============================================================ */

html[data-theme="dark"] body {
    color: #e2e8f0;

    background: #0b1120;
}


html[data-theme="dark"] .auth-form-side {
    background:
        linear-gradient(
            180deg,
            #0f172a,
            #0b1120
        );
}


html[data-theme="dark"] .auth-heading h2 {
    color: #f8fafc;
}


html[data-theme="dark"] .auth-heading p {
    color: #94a3b8;
}


html[data-theme="dark"] .form-label {
    color: #cbd5e1;
}


html[data-theme="dark"] .input-wrapper input {
    border-color: #243248;

    color: #f8fafc;

    background: #111b2d;
}


html[data-theme="dark"] .input-wrapper input::placeholder {
    color: #64748b;
}


html[data-theme="dark"] .input-wrapper input:hover {
    border-color: #334155;
}


html[data-theme="dark"] .input-wrapper input:focus {
    background: #101a2b;
}


html[data-theme="dark"] .password-requirements {
    border-color: #243248;

    background: #101827;
}


html[data-theme="dark"] .requirements-title {
    color: #cbd5e1;
}


html[data-theme="dark"] .requirement {
    color: #64748b;
}


html[data-theme="dark"] .requirement.valid {
    color: #cbd5e1;
}


html[data-theme="dark"] .terms-text {
    color: #64748b;
}


html[data-theme="dark"] .checkbox-box {
    border-color: #334155;

    background: #111b2d;
}


html[data-theme="dark"] .auth-security {
    border-color: #1e293b;
}


html[data-theme="dark"] .auth-security strong {
    color: #cbd5e1;
}


html[data-theme="dark"] .auth-loader {
    background: #0b1120;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1180px) {

    .auth-page {
        grid-template-columns:
            minmax(360px, 0.82fr)
            minmax(500px, 1.18fr);
    }


    .auth-showcase {
        padding:
            40px 42px;
    }


    .auth-form-container {
        max-width: 550px;

        padding:
            50px 55px;
    }


    .showcase-brand {
        margin-bottom: 80px;
    }


    .showcase-message h1 {
        font-size: 48px;

        letter-spacing: -2.2px;
    }

}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 980px) {

    .auth-page {
        grid-template-columns: 1fr;
    }


    .auth-showcase {
        display: none;
    }


    .auth-form-side {
        min-height: 100vh;

        padding:
            30px 20px;
    }


    .auth-form-container {
        max-width: 550px;

        padding:
            35px 20px;
    }


    .mobile-auth-brand {
        display: inline-flex;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {

    .auth-form-side {
        align-items: flex-start;

        padding:
            20px 15px;
    }


    .auth-form-container {
        max-width: 100%;

        padding:
            20px 5px 35px;
    }


    .mobile-auth-brand {
        margin-bottom: 35px;
    }


    .auth-heading {
        margin-bottom: 26px;
    }


    .auth-heading h2 {
        font-size: 27px;

        letter-spacing: -1px;
    }


    .auth-heading p {
        font-size: 12px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .form-group {
        margin-bottom: 17px;
    }


    .password-requirements {
        margin-bottom: 18px;
    }


    .auth-submit {
        height: 49px;
    }


    .auth-security {
        margin-top: 26px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 390px) {

    .auth-form-side {
        padding:
            15px 12px;
    }


    .auth-form-container {
        padding:
            18px 3px 30px;
    }


    .auth-heading h2 {
        font-size: 25px;
    }


    .requirements-grid {
        grid-template-columns: 1fr;
    }


    .terms-text {
        font-size: 9px;
    }


    .auth-switch {
        flex-direction: column;

        gap: 3px;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }


    [data-reveal] {
        opacity: 1;

        transform: none;
    }

}


/* ============================================================
   PRINT
   ============================================================ */

@media print {

    .auth-showcase,
    .auth-loader,
    .auth-security,
    .auth-submit {
        display: none !important;
    }


    .auth-page {
        display: block;
    }


    .auth-form-side {
        min-height: auto;
    }

}