/* ================================================================
   cont-flow-page.css — Register Doctor & Forgot Password pages
   Layout: card centrat, header gradient violet/indigo
   ================================================================ */

.cfp-page {
    min-height: 100vh;
    background: #f5f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 1rem 2rem;
}

.cfp-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.22), 0 8px 30px rgba(0,0,0,0.1);
    animation: cfp-fadeUp 0.4s ease-out;
}

@keyframes cfp-fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header gradient ──────────────────────────────────────────── */
.cfp-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.cfp-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 36px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 36px 36px 0 0;
}

.cfp-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cfp-logo-wrap img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.cfp-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ── Step indicator (Register only) ──────────────────────────── */
.cfp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.cfp-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.cfp-step.active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.cfp-step.done {
    background: rgba(255,255,255,0.9);
    color: #4ade80;
    border-color: rgba(255,255,255,0.9);
}

.cfp-step-line {
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* ── Body ─────────────────────────────────────────────────────── */
.cfp-body {
    padding: 0 2rem 2rem;
    background: #fff;
}

.cfp-desc {
    font-size: 0.88rem;
    color: #374151;
    margin: 0 0 1.25rem;
    line-height: 1.6;
    text-align: center;
    padding-top: 0.25rem;
}

/* ── Input ────────────────────────────────────────────────────── */
.cfp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.78rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.cfp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background: #fff;
}

.cfp-input::placeholder { color: #b0b8c9; }

/* ── Password eye toggle ──────────────────────────────────────── */
.cfp-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.cfp-eye:hover { color: #667eea; }

/* ── Error ────────────────────────────────────────────────────── */
.cfp-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.84rem;
    margin: 0.75rem 0;
    display: none;
}

/* ── Primary button ───────────────────────────────────────────── */
.cfp-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.82rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    transition: box-shadow 0.2s, transform 0.15s;
    font-family: inherit;
}

.cfp-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

.cfp-btn:active { transform: scale(0.98); }
.cfp-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Resend box ───────────────────────────────────────────────── */
.cfp-resend-box {
    margin-top: 1.1rem;
    padding: 0.9rem 1rem;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    text-align: center;
}

.cfp-resend-box p {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.cfp-btn-resend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

.cfp-btn-resend:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

.cfp-btn-resend:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

/* ── Links ────────────────────────────────────────────────────── */
.cfp-link-row {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
}

.cfp-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.cfp-link:hover { color: #5a6fd6; text-decoration: underline; }

/* ── DOB row ──────────────────────────────────────────────────── */
.cfp-dob-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cfp-dob-label {
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.cfp-select {
    flex: 1;
    padding: 0.65rem 0.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #1f2937;
    background: #f9fafb;
    cursor: pointer;
    min-width: 0;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cfp-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background: #fff;
}

/* ── Success ──────────────────────────────────────────────────── */
.cfp-success {
    text-align: center;
    padding: 0.5rem 0 0.5rem;
}

.cfp-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.cfp-success h3 {
    font-size: 1.15rem;
    color: #1f2937;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.cfp-success p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 520px) {
    .cfp-page { padding-top: 80px; }
    .cfp-card { border-radius: 16px; }
    .cfp-body { padding: 0 1.25rem 1.5rem; }
    .cfp-header { padding: 1.5rem 1.25rem 2.5rem; }
    .cfp-dob-label { display: none; }
}
