/* =========================================================
   Exclusive House & Land – Member Section Styles
   Extends public.css — do NOT use standalone; always pair
   with public.css in templates.
   ========================================================= */

/* ── Member Page Layout ─────────────────────────────────── */
.member-page {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    width: 100%;
}

.member-page--wide {
    max-width: 800px;
}

/* ── Auth Card ──────────────────────────────────────────── */
.member-card {
    background: var(--ehl-white);
    border: 1px solid var(--ehl-border);
    border-radius: 6px;
    padding: 36px 40px;
}

.member-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ehl-text);
    margin-bottom: 6px;
}

.member-card .card-desc {
    font-size: 0.9rem;
    color: var(--ehl-text-sec);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ── Form Fields (within member card) ───────────────────── */
.member-card .form-field {
    margin-bottom: 18px;
}

.member-card .form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ehl-text);
    margin-bottom: 5px;
}

.member-card .form-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ehl-border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--ehl-text);
    outline: none;
    transition: border-color 0.2s;
}

.member-card .form-field input:focus {
    border-color: var(--ehl-blue);
    box-shadow: 0 0 0 3px rgba(32,158,187,0.1);
}

.member-card .form-field input::placeholder {
    color: var(--ehl-text-light);
}

.member-card .form-field input[readonly] {
    background: #f5f5f5;
    color: var(--ehl-text-light);
    cursor: not-allowed;
}

.member-card .field-hint {
    font-size: 0.78rem;
    color: var(--ehl-text-light);
    margin-top: 4px;
}

/* ── Code Input (5-digit) ───────────────────────────────── */
.code-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 8px;
}

.code-input-wrapper input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid var(--ehl-border);
    border-radius: 6px;
    color: var(--ehl-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input-wrapper input:focus {
    border-color: var(--ehl-blue);
    box-shadow: 0 0 0 3px rgba(32,158,187,0.12);
}

.code-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ehl-text-light);
    margin-bottom: 18px;
}

/* ── Buttons ────────────────────────────────────────────── */
.member-card .btn-member {
    width: 100%;
    padding: 14px 32px;
    background: var(--ehl-blue);
    color: var(--ehl-white);
    border: none;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.member-card .btn-member:hover {
    background: var(--ehl-blue-dark);
    box-shadow: 0 4px 20px rgba(32,158,187,0.35);
}

.member-card .btn-member:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Messages ───────────────────────────────────────────── */
.member-msg {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.5;
    display: none;
}

.member-msg-error {
    background: #fdf0ef;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.member-msg-success {
    background: #eafaf1;
    color: #1a7a4c;
    border: 1px solid #b7ebd0;
}

/* ── Links ──────────────────────────────────────────────── */
.member-card .card-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--ehl-text-light);
    text-decoration: none;
    transition: color 0.15s;
}

.member-card .card-link:hover {
    color: var(--ehl-blue);
    text-decoration: none;
}

.member-card .card-divider {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ehl-text-light);
    margin-top: 20px;
}

.member-card .card-divider a {
    color: var(--ehl-blue);
    font-weight: 600;
    text-decoration: none;
}

.member-card .card-divider a:hover {
    text-decoration: underline;
}

.member-card .resend-row {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--ehl-text-light);
}

.member-card .resend-row button {
    display: inline;
    color: var(--ehl-blue);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
}

.member-card .resend-row button:hover {
    text-decoration: underline;
}

.member-card .resend-row button:disabled {
    color: var(--ehl-text-light);
    cursor: not-allowed;
}

/* ── Account Info Rows ──────────────────────────────────── */
.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ehl-border);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ehl-text-sec);
    min-width: 130px;
}

.info-value {
    font-size: 0.9rem;
    color: var(--ehl-text);
}

.info-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-badge-verified {
    background: #eafaf1;
    color: #1a7a4c;
}

/* ── Section Divider in Account ──────────────────────────── */
.member-card hr {
    border: none;
    border-top: 1px solid var(--ehl-border);
    margin: 28px 0;
}

.member-card .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ehl-text);
    margin-bottom: 4px;
}

.member-card .section-desc {
    font-size: 0.85rem;
    color: var(--ehl-text-light);
    margin-bottom: 20px;
}

/* ── Account Change Password (narrower) ─────────────────── */
.change-pw-form .form-field {
    max-width: 380px;
}

.change-pw-form .btn-member {
    max-width: 380px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .member-card {
        padding: 24px 20px;
    }

    .code-input-wrapper input {
        width: 46px;
        height: 50px;
        font-size: 1.3rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
