/* Light, minimal styling for Custom Auth Portal */
.cap-wrap {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: #f6f8fb;
}
.cap-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16,24,40,.08);
    padding: 24px;
}
.cap-header { text-align: center; margin-bottom: 16px; }
.cap-title { margin: 0; font-size: 1.5rem; line-height: 1.3; color: #111827; }
.cap-subtitle { margin: 6px 0 0; color: #6b7280; font-size: .95rem; }

.cap-label { display:block; margin: 14px 0 6px; color:#374151; font-weight:600; font-size:.9rem; }
.cap-input {
    width:100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.cap-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.cap-btn {
    display:inline-block;
    margin-top: 14px;
    width:100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background:#f9fafb;
    color:#111827;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .02s;
}
.cap-btn:hover { background:#f3f4f6; }
.cap-btn:active { transform: translateY(1px); }

.cap-btn-primary {
    background:#3b82f6;
    border-color:#3b82f6;
    color:#fff;
}
.cap-btn-primary:hover { background:#2563eb; border-color:#2563eb; }

.cap-btn-link {
    background: transparent;
    border: none;
    color: #2563eb;
    width: auto;
    padding: 8px 0;
}
.cap-btn-link:hover { text-decoration: underline; }

.cap-footer { text-align: center; margin-top: 12px; }
.cap-link { color:#2563eb; text-decoration:none; }
.cap-link:hover { text-decoration: underline; }

.cap-error { color:#b91c1c; background:#fee2e2; border:1px solid #fecaca; padding:.6rem .8rem; border-radius:10px; margin-top:10px; }
.cap-success { color:#065f46; background:#d1fae5; border:1px solid #a7f3d0; padding:.6rem .8rem; border-radius:10px; margin-top:10px; }

.cap-help { font-size: .875rem; color:#6b7280; margin-top:8px; min-height: 1.2em; }
.cap-help-success { color:#065f46; }
.cap-help-error { color:#b91c1c; }

.cap-greeting { color:#374151; margin: 0 0 8px 0; font-weight: 600; }

/* transitions between steps */
.cap-hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .15s ease, height .15s ease, margin .15s ease;
}
#step-email:not(.cap-hidden), #step-password:not(.cap-hidden) {
    opacity: 1;
    height: auto;
    pointer-events: auto;
    margin-top: 0;
}
