/* ============================================================
   Shared visual language for register.php / forgot-password.php /
   upload-photo.php, extending (never editing) login.css so those
   pages look like they belong to the same product as login.php.
   ============================================================ */

/* Wider variant for pages with a lot more form content than login
   (register, upload-photo) — same gradient/card, just no room for
   the hero photo, and a wider card. */
.auth-wide .login-right { display: none; }
.auth-wide .login-left { flex: 1 1 100%; max-width: none; }
.auth-wide .login-left-inner { max-width: 720px; }
.auth-wide .login-card { padding: 30px 34px 26px; }
.login-left * { box-sizing: border-box; }

/* ---------- Step tabs (register.php) ---------- */
.login-card .step-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.login-card .step-tab {
    background: #faf1f5;
    border: 1px solid #f3dde6;
    color: #8a5a6b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.login-card .step-tab.active {
    background: linear-gradient(90deg, #e0466f, #b3184f);
    color: #fff;
    border-color: transparent;
}

/* ---------- Generic fields inside a step (register.php / forgot-password reset section / otp-box) ---------- */
.login-card fieldset { border: none; padding: 0; margin: 0; }
.login-card label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin: 14px 0 6px;
    color: #444;
}
.login-card label[hidden] {
    display: none;
}
.login-card fieldset.step > h3,
.login-card h3 {
    margin: 22px 0 8px;
    font-size: 1rem;
    color: #7a1f3d;
}
.login-card input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.login-card select,
.login-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #f3dde6;
    background: #faf1f5;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
}
.login-card textarea { resize: vertical; }
.login-card .hint {
    display: block;
    font-weight: 400;
    color: #999;
    font-size: 0.8rem;
    margin-top: 4px;
}
.login-card .hint[hidden] {
    display: none;
}

/* ---------- Buttons ---------- */
.login-btn-outline {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0466f;
    background: #fff;
    color: #d6336c;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}
.login-btn-outline:hover { background: #fdf1f5; }
.login-btn-outline:disabled { opacity: 0.55; cursor: default; }
.login-btn:disabled { opacity: 0.6; cursor: default; }

.login-card .step-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.login-card .step-nav > * { flex: 1; margin: 0; }

.otp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.otp-row .login-btn-outline { width: auto; padding: 10px 20px; }

/* Send OTP / Verify OTP sitting inline next to their input instead
   of stacked below on their own mostly-empty row — keeps the wide
   auth card from showing a large dead strip of whitespace beside a
   lone small button. */
.otp-inline-row {
    display: flex;
    gap: 10px;
}
.otp-inline-row input { flex: 1; min-width: 0; }
.otp-inline-row .otp-inline-btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0 18px;
}

.verify-email-card {
    background: #fdf3f6;
    border: 1px solid #f3d9e3;
    border-radius: 14px;
    padding: 18px 18px 6px;
    margin-bottom: 18px;
}
.verify-email-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px !important;
    font-size: 1rem;
    color: #7a1f3d;
}
.verify-email-card .notice { margin-top: 10px; }
#otpCode {
    letter-spacing: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- Upload page ---------- */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 10px 0 6px;
}
.upload-field-box {
    border: 1px dashed #f3c3d3;
    border-radius: 12px;
    padding: 14px;
    background: #fffafb;
    text-align: center;
}
.upload-field-box label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #7a1f3d;
    margin-bottom: 8px;
}
.upload-field-box .upload-preview {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    background: #faf1f5 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b98a9a;
    font-size: 0.78rem;
    margin-bottom: 8px;
    overflow: hidden;
}
.upload-field-box input[type="file"] {
    width: 100%;
    font-size: 0.78rem;
}
.upload-doc-box {
    border: 1px solid #f3dde6;
    border-radius: 12px;
    padding: 14px 16px;
    background: #faf1f5;
    margin-bottom: 14px;
}
.upload-doc-box label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: #444; }
.upload-doc-box input[type="file"] { width: 100%; font-size: 0.85rem; }

/* ---------- Misc bits used on these pages that style.css normally
   provides — these pages deliberately don't load style.css, so
   these are duplicated here in the login palette instead. ---------- */
.login-card .auth-links { text-align: center; margin-top: 18px; font-size: 0.9rem; }
.login-card .auth-links a { color: #d6336c; font-weight: 600; text-decoration: none; }
.login-card .auth-links a:hover { text-decoration: underline; }


/* ---------- Password show/hide toggle (auto-added by password-toggle.js) ---------- */
.pw-toggle-wrap { position: relative; }
.pw-toggle-wrap input[type="password"],
.pw-toggle-wrap input[type="text"] { padding-right: 44px !important; }
.pw-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #b98a9a;
    display: flex;
    align-items: center;
}
.pw-toggle-btn svg { width: 20px; height: 20px; }
.pw-toggle-btn:hover { color: #d6336c; }

/* ---------- Password match hint under Confirm Password ---------- */
.pw-match-hint { font-size: 0.8rem; margin-top: 4px; display: block; }
.pw-match-hint[hidden] { display: none; }
.pw-match-hint.match-ok { color: #2e7d32; }
.pw-match-hint.match-bad { color: #c62828; }

/* ---------- Final Review step ---------- */
.review-summary { margin-top: 10px; }
.review-section {
    border: 1px solid #f3dde6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fffafb;
}
.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-section-header strong { color: #7a1f3d; font-size: 0.92rem; }
.review-edit-btn {
    background: none;
    border: none;
    color: #d6336c;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 6px;
}
.review-edit-btn:hover { text-decoration: underline; }
.review-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    padding: 4px 0;
    border-top: 1px dashed #f3dde6;
}
.review-row:first-of-type { border-top: none; }
.review-row span { color: #888; }
.review-row strong { text-align: right; word-break: break-word; }

/* ---------- Height cm / ft / in trio (Step 2) ---------- */
.height-input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.height-input-row > div { display: flex; flex-direction: column; }
.height-input-row .hint { margin-top: 2px; text-align: center; }

/* ---------- BMI category label ---------- */
.bmi-ok { color: #2e7d32; }
.bmi-warn { color: #c62828; }

/* ---------- Auto-crop "Adjust crop" link under a profile photo ---------- */
.adjust-crop-btn {
    display: block;
    width: 100%;
    background: none;
    border: 1px dashed #e0466f;
    color: #d6336c;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    font-family: inherit;
}
.adjust-crop-btn:hover { background: #fdf1f5; }
.adjust-crop-btn[hidden] { display: none; }

/* ---------- Document upload auto-resize preview (ID proof / salary slip / kundali) ---------- */
.doc-preview {
    aspect-ratio: auto;
    min-height: 44px;
    background: #fff;
    border: 1px dashed #f3c3d3;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    text-align: center;
}

/* ---------- Links inside form copy (e.g. Terms & Privacy in the agree checkbox) ---------- */
.login-card fieldset a { color: #d6336c; font-weight: 600; text-decoration: underline; }
.login-card fieldset a:hover { color: #b3184f; }

/* ---------- WhatsApp/Email OTP channel toggle (register.php Step 0) ---------- */
.otp-channel-toggle {
    display: flex;
    gap: 16px;
    margin: 10px 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7a1f3d;
}
.otp-channel-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; }