/* ═══════════════════════════════════════════════════════
   DRILLSOFT — Auth pages (login, change password)
   Reuses the design tokens defined in dashboard.css :root
═══════════════════════════════════════════════════════ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    color: var(--text);
}

/* Used when the card sits inside layouts.page (e.g. "Change password"
   reached from the profile menu) instead of a full-viewport centered page. */
.auth-card--inline {
    max-width: 420px;
    margin: 0;
}

.auth-title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-error {
    background: rgba(255, 123, 115, 0.12);
    border: 1px solid rgba(255, 123, 115, 0.4);
    color: var(--coral);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.auth-status {
    background: rgba(78, 225, 193, 0.12);
    border: 1px solid rgba(78, 225, 193, 0.4);
    color: var(--teal);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

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

.auth-label {
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 10px;
}

.auth-input {
    height: var(--select-height, 34px);
    padding: 0 var(--select-padding-x, 10px);
    background: var(--select-bg);
    border: 1px solid var(--select-border);
    border-radius: var(--select-radius, 7px);
    color: var(--text);
    font-size: 0.88rem;
    height: 38px;
}

.auth-input:focus {
    outline: none;
    border-color: var(--select-border-focus);
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--muted);
}

.auth-submit {
    margin-top: 20px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--teal);
    color: #06231d;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(1.05);
}

.auth-back-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.auth-back-link:hover {
    color: var(--text);
}
