@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Shared tokens ─────────────────────────────────────────── */
:root {
    --auth-primary:     #2d7ff9;
    --auth-primary-dim: #156ef0;
    --auth-primary-glow: rgba(45, 127, 249, 0.22);
    --auth-bg:      var(--bg, #e6eaf3);
    --auth-surface: var(--bg-surface, #ffffff);
    --auth-border:  var(--border, #e3e8ef);
    --auth-text:    var(--text, #111827);
    --auth-muted:   var(--text-muted, #8898aa);
    --auth-radius:  12px;
    --auth-radius-sm: 8px;
    --font-auth:    'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-auth);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.auth-body {
    margin: 0;
    font-family: var(--font-auth);
    background-color: var(--bg, var(--auth-bg));
    color: var(--auth-text);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Dark login background ─────────────────────────────────── */
body.auth-login {
    background:
        radial-gradient(ellipse 55% 45% at 18% 65%, rgba(45, 127, 249, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 82% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
        #07080f;
}

/* ─── Page shell ─────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg, var(--auth-bg));
}

body.auth-login .auth-page {
    background: transparent; /* handled by body */
}

.auth-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 900px) {
    .auth-page:not(.auth-page--login-solo) .auth-shell {
        grid-template-columns: minmax(280px, 1fr) minmax(360px, 480px);
        max-width: 1200px;
        margin: 0 auto;
        align-items: stretch;
        padding: 32px 40px;
        gap: 0;
    }
}

/* ─── Login solo layout (centered card) ──────────────────────── */
.auth-page--login-solo .auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-page--login-solo .auth-main {
    flex: 0 1 400px;
    width: 100%;
    max-width: 400px;
    padding: 0;
}

/* ─── Login card ─────────────────────────────────────────────── */
body.auth-login .wrap-login100 {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 44px 40px 48px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.35);
    text-align: center;
}

@media (max-width: 480px) {
    body.auth-login .wrap-login100 {
        padding: 36px 28px 40px;
        border-radius: 16px;
    }
}

/* ─── Icon ───────────────────────────────────────────────────── */
.login-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--auth-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

/* ─── Heading ────────────────────────────────────────────────── */
body.auth-login .login100-form-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f1f5f9;
    margin: 0 0 4px;
    line-height: 1.15;
    text-align: center;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 28px;
    text-align: center;
    font-weight: 400;
}

/* ─── Labels ─────────────────────────────────────────────────── */
body.auth-login .field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 7px;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
}

/* ─── Inputs ─────────────────────────────────────────────────── */
body.auth-login .wrap-input100 {
    width: 100%;
    position: relative;
    margin-bottom: 4px;
}

body.auth-login .input100 {
    width: 100%;
    font-family: var(--font-auth);
    font-size: 0.9375rem;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    background: #1c2333;
    color: #e2e8f0;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    min-height: 48px;
    display: block;
}

body.auth-login .input100::placeholder { color: #3d5068; }

body.auth-login .input100:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: #1e2638;
}

body.auth-login .input100:focus {
    border-color: rgba(45, 127, 249, 0.6);
    background: #1e2638;
}

.focus-input100 { display: none; }

/* ─── Button ─────────────────────────────────────────────────── */
body.auth-login .container-login100-form-btn {
    width: 100%;
    margin-top: 24px;
}

body.auth-login .login100-form-btn {
    width: 100%;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    background: var(--auth-primary);
    color: #fff;
    cursor: pointer;
    letter-spacing: -0.01em;
    min-height: 52px;
    box-shadow: none;
    transition: background 0.15s ease, transform 0.12s ease;
}

body.auth-login .login100-form-btn:hover {
    background: #1e72f0;
    transform: translateY(-1px);
}

body.auth-login .login100-form-btn:active {
    transform: scale(0.985) translateY(0);
}

/* ─── Spacing utilities ──────────────────────────────────────── */
.m-b-16 { margin-bottom: 16px; }
.p-b-51 { padding-bottom: 4px; }
.m-t-17 { margin-top: 16px; }
.p-t-3  { padding-top: 4px; }
.p-b-24 { padding-bottom: 8px; }

/* ─── Register / shared two-column layout ────────────────────── */
.auth-page:not(.auth-page--login-solo) .auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 32px;
}

@media (min-width: 900px) {
    .auth-page:not(.auth-page--login-solo) .auth-main {
        padding: 24px 0;
    }
}

.container-login100 {
    width: 100%;
    max-width: 420px;
}

.wrap-login100 {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 36px 28px 40px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.04);
}

@media (min-width: 480px) {
    .wrap-login100 {
        padding: 40px 36px 44px;
    }
}

/* ─── Shared form elements (register, etc.) ──────────────────── */
.login100-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.login100-form-title {
    display: block;
    width: 100%;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--auth-text);
    margin: 0;
    line-height: 1.2;
}

.validate-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.flex-sb-m {
    justify-content: space-between;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.w-full { width: 100%; }

.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-muted);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.wrap-input100 {
    width: 100%;
    position: relative;
    margin-bottom: 4px;
}

.input100 {
    width: 100%;
    font-family: var(--font-auth);
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: var(--auth-radius-sm);
    border: 1px solid var(--auth-border);
    background: #fff;
    color: var(--auth-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
    display: block;
}

.input100::placeholder { color: #b0bcc9; }
.input100:hover { border-color: #c5ced9; }
.input100:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-glow);
    background: #fff;
}

.container-login100-form-btn {
    width: 100%;
    margin-top: 8px;
}

.login100-form-btn {
    width: 100%;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 24px;
    border: none;
    border-radius: var(--auth-radius-sm);
    background: var(--auth-primary);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
    letter-spacing: -0.01em;
    min-height: 52px;
    box-shadow: 0 8px 28px var(--auth-primary-glow);
}

.login100-form-btn:hover {
    background: var(--auth-primary-dim);
    box-shadow: 0 8px 20px var(--auth-primary-glow);
}

.login100-form-btn:active { transform: scale(0.988); }

/* ─── Links ───────────────────────────────────────────────────── */
.auth-links { width: 100%; }

.txt1 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--auth-muted);
    transition: color 0.15s ease;
    padding: 4px 0;
    display: inline-block;
}

.txt1:hover { color: var(--auth-primary); }

/* ─── Brand inside card (register) ───────────────────────────── */
.auth-brand {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

@media (min-width: 900px) {
    .auth-brand.auth-brand--in-card { display: none; }
}

.auth-brand .brand-mark {
    width: 48px;
    height: 48px;
    background: var(--auth-primary);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 12px;
    box-shadow: 0 10px 32px var(--auth-primary-glow);
}

.auth-brand .brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.02em;
}

/* ─── Aside (register split layout) ─────────────────────────── */
.auth-aside {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    border-radius: var(--auth-radius);
    margin-right: 24px;
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
}

@media (min-width: 900px) { .auth-aside { display: flex; } }

.auth-aside-inner { max-width: 360px; }

.auth-aside-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--auth-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px var(--auth-primary-glow);
}

.auth-aside-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    line-height: 1.15;
}

.auth-aside-text {
    margin: 0;
    font-size: 1.05rem;
    color: var(--auth-muted);
    line-height: 1.55;
    max-width: 32ch;
}

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
    border-radius: var(--auth-radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-primary {
    background: rgba(45, 127, 249, 0.08);
    color: var(--auth-primary-dim);
    border-color: rgba(45, 127, 249, 0.2);
}

.hint {
    font-size: 0.8125rem;
    color: var(--auth-muted);
    margin: -10px 0 16px;
    line-height: 1.45;
}

/* ─── Notyf ──────────────────────────────────────────────────── */
.notyf__toast {
    border-radius: var(--auth-radius-sm) !important;
    font-family: var(--font-auth) !important;
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
