/* =====================
   AUTH PAGES (login / register)
   ===================== */

.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

/* reuse hero orbs */
.auth-page .hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* --- card --- */

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: rgba(21, 34, 53, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(104, 90, 255, 0.18);
    border-radius: 24px;
    padding: 48px 44px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both 0.05s;
}

.auth-card--wide {
    max-width: 600px;
}

.auth-logo {
    display: block;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-light);
    text-decoration: none;
    margin-bottom: 32px;
    text-align: center;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: #f2f2f2;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* --- form inside auth --- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form .form-group { display: flex; flex-direction: column; gap: 7px; }

.auth-form .form-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a93b0;
}

.auth-form .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 13px 16px;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 200ms, box-shadow 200ms;
    width: 100%;
}

.auth-form .form-control::placeholder { color: #3d5068; }

.auth-form .form-control:focus {
    border-color: rgba(104, 90, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(104, 90, 255, 0.12);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- remember / forgot row --- */

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-forgot {
    font-size: 13px;
    color: var(--accent-light);
    text-decoration: none;
    transition: color 150ms;
}

.auth-forgot:hover { color: #fbfbfb; }

/* --- submit button --- */

.auth-submit {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: #fbfbfb;
    background: linear-gradient(135deg, #7b6dff 0%, var(--accent-dark) 100%);
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
    box-shadow: 0 4px 20px rgba(104, 90, 255, 0.38);
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(104, 90, 255, 0.52);
}

/* --- OR divider --- */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-divider-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Telegram widget wrapper --- */

.auth-telegram {
    display: flex;
    justify-content: center;
    min-height: 48px;
}

/* --- bottom link --- */

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-dim);
}

.auth-switch a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 150ms;
}

.auth-switch a:hover { color: #fbfbfb; }
