/* ── Auth / Login page ─────────────────────────────────────────────────────── */

.lm-auth-page {
    min-height: 100vh;
    background: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: var(--text-body);
}

.lm-auth-wrap {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.lm-auth-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

.lm-auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.lm-auth-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.lm-auth-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.lm-auth-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}

.lm-auth-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.lm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lm-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lm-auth-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
}

.lm-auth-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.6rem 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.lm-auth-input:focus {
    border-color: var(--green);
}

.lm-auth-input::placeholder {
    color: var(--text-faint);
}

.lm-auth-btn {
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--radius-input);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}

.lm-auth-btn:hover:not(:disabled) {
    background: var(--green-hover);
}

.lm-auth-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lm-auth-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    width: 100%;
    margin-top: 0.5rem;
}

.lm-auth-btn-ghost:hover {
    color: var(--text-body);
    border-color: var(--text-muted);
}

.lm-auth-alert {
    border-radius: var(--radius-input);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.lm-auth-alert-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Sent state */
.lm-auth-sent {
    text-align: center;
}

.lm-auth-sent-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--green);
}

.lm-auth-sent-icon svg {
    width: 100%;
    height: 100%;
}
