/* ── Auth pages — minimal, brand-consistent ── */

:root {
    --auth-border-radius: 12px;
}

body {
    background: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Brand mark at top ── */
.auth-brand {
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.auth-brand a:hover {
    opacity: 0.8;
}

.auth-logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* ── Card ── */
.auth-card {
    background: #fff;
    border-radius: var(--auth-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark-color);
}

.auth-card .subtitle {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 28px;
}

.auth-card .subtitle strong {
    color: var(--dark-color);
}

/* ── Step indicator ── */
.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step-dot {
    height: 4px;
    border-radius: 2px;
    flex: 1;
    background: var(--light-color);
    transition: background 0.3s;
}

.step-dot.active {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ── Form elements ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--dark-color);
}

.form-group label .optional {
    font-weight: 400;
    color: var(--gray-color);
    font-size: 12px;
}

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

.input-prefix {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: var(--gray-color);
    pointer-events: none;
    user-select: none;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark-color);
    background: #fafafa;
    outline: none;
    transition: var(--transition);
}

.form-input.has-prefix {
    padding-left: 42px;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

/* OTP input — large centered digits */
.otp-input {
    text-align: center;
    letter-spacing: 12px;
    font-size: 24px;
    font-weight: 700;
    padding: 14px 16px;
}

/* ── Submit button ── */
.btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    transition: var(--transition);
    margin-top: 4px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}

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

/* ── Back link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-color);
    text-decoration: none;
    margin-top: 18px;
    transition: color 0.2s;
}

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

/* ── Error messages ── */
.messages {
    list-style: none;
    margin-bottom: 18px;
}

.messages li {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
}

.messages li.error {
    background: #fff5f5;
    color: #c0392b;
    border: 1px solid #fcc;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
}
