/* === AUTH PAGES — Centered card design === */

/* Full-page background */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #e8f0fe 0%, #f0f6ff 50%, #e3ecfd 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Top logo bar */
.auth-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.auth-topbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-topbar .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-topbar .logo-main {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-topbar .logo-sub {
    font-size: 17px;
    font-weight: 800;
    color: #0d47a1;
    letter-spacing: -0.5px;
}

.auth-topbar .logo-plus { color: #f97316; }

.auth-topbar-link {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    transition: color .2s;
}
.auth-topbar-link:hover { color: #1565c0; }
.auth-topbar-link span {
    color: #1565c0;
    font-weight: 600;
}

/* Main card */
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 4px 6px rgba(21, 101, 192, 0.04),
        0 20px 60px rgba(21, 101, 192, 0.10),
        0 1px 3px rgba(0, 0, 0, 0.06);
    margin-top: 70px;  /* space for fixed topbar */
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Alerts */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 500;
}
.auth-alert.success { background: #dcfce7; color: #16a34a; border-left: 4px solid #16a34a; }
.auth-alert.error { background: #fee2e2; color: #dc2626; border-left: 4px solid #dc2626; }

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    transition: border-color .2s, box-shadow .2s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group input::placeholder {
    color: #c0cadc;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    transition: color .2s;
}
.toggle-password:hover { color: #1565c0; }
.toggle-password svg { width: 18px; height: 18px; }

/* Submit button */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: #1565c0;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    margin-top: 4px;
    font-family: inherit;
}

.btn-auth:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.3);
}

.btn-auth:active { transform: translateY(0); }

.auth-agree {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}
.auth-agree a { color: #1565c0; text-decoration: underline; }

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 14px;
    color: #94a3b8;
    font-size: 13px;
}

/* Links */
.auth-links {
    text-align: center;
    margin-bottom: 14px;
}

.auth-links p {
    font-size: 14px;
    color: #64748b;
}

.auth-links a {
    color: #1565c0;
    font-weight: 600;
}

.auth-back {
    display: block;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    transition: color .2s;
}
.auth-back:hover { color: #1565c0; }

/* Responsive */
@media (max-width: 520px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-card h1 { font-size: 1.7rem; }
    .auth-topbar { padding: 14px 20px; }
}

@media (max-width: 375px) {
    .auth-page { padding: 16px; }
    .auth-card { padding: 24px 16px; }
}
