/* assets/css/login.css */

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

/* ── Card ─────────────────────────────────────── */
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
}

/* ── Heading ──────────────────────────────────── */
.login-heading {
    margin-bottom: 20px;
}

.login-heading h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.login-heading p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ── Form ─────────────────────────────────────── */
.login-form .field {
    margin-bottom: 16px;
}

.login-form .field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.login-form .field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.login-form .field input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(17,19,24,.08);
}

.login-form .field input::placeholder {
    color: var(--text-faint);
}

/* ── Error ────────────────────────────────────── */
.login-error {
    display: none;
    font-size: 13px;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 16px;
}

/* ── Button ───────────────────────────────────── */
.login-btn {
    width: 100%;
    height: 40px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s, opacity .15s;
}

.login-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.login-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Divider & step hint ──────────────────────── */
.login-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
}

.login-step .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-step span {
    font-size: 12px;
    color: var(--text-faint);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }
}