/* ===== AUTH PAGES ===== */
.auth-section {
    min-height: calc(100vh - 140px);
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.09);
    padding: 44px 48px;
    width: 100%;
    max-width: 460px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 44px;
    width: auto;
    margin: 0 auto;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-alert-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    padding: 11px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-pw:hover {
    color: var(--secondary);
}

/* Remember row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

/* Button */
.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, #e69a1d 100%);
    color: #1a2250;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
    margin-top: 4px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.42);
}

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

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.auth-switch a:hover {
    color: var(--primary-dark);
}

@media (max-width: 520px) {
    .auth-card {
        padding: 32px 20px;
        border-radius: 14px;
    }
    .auth-header h1 {
        font-size: 22px;
    }
}
