/* ══════════════════════════════════════════════════════════════════
   Victron Dashboard — Login pagina styling
   Compatible met Rentman Dashboard login
   ══════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #1C4220 40%, #0f1117 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1a365d, #2a4a7f);
    padding: 32px 32px 28px;
    text-align: center;
}

.login-logo {
    margin-bottom: 12px;
}

.login-logo svg {
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.login-header h1 {
    color: white;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

.login-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85em;
    margin-top: 4px;
}

.login-body {
    padding: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: white;
    color: #1a202c;
}

.form-group input:focus {
    border-color: #2a4a7f;
    box-shadow: 0 0 0 3px rgba(42,74,127,0.12);
}

.form-group input:disabled {
    background: #f7fafc;
    opacity: 0.7;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1a365d, #2a4a7f);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,54,93,0.35);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.link-btn {
    background: none;
    border: none;
    color: #2a4a7f;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-btn:hover {
    color: #1a365d;
}

/* ── Berichten ────────────────────────────────────────────────────── */
.error-msg {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88em;
    margin-bottom: 16px;
    display: none;
}

.error-msg.visible {
    display: block;
}

.info-msg {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88em;
    margin-bottom: 16px;
    display: none;
}

.info-msg.visible {
    display: block;
}

/* ── OTP invoer ──────────────────────────────────────────────────── */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1a202c;
}

.otp-inputs input:focus {
    border-color: #2a4a7f;
    box-shadow: 0 0 0 3px rgba(42,74,127,0.12);
}

/* ── Stappen ─────────────────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; }

.step-subtitle {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alt-action {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88em;
    color: #718096;
}

.password-rules {
    font-size: 0.8em;
    color: #64748b;
    margin-top: 4px;
}

/* ── Spinner ─────────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    body { padding: 12px; }
    .login-card { border-radius: 16px; }
    .login-header { padding: 24px 24px 20px; }
    .login-body { padding: 24px; }
    .otp-inputs input { width: 42px; height: 48px; font-size: 1.3em; }
}
