/* Namaya Users - matches the Namaya Jewels gold/black/cream theme used site-wide */

:root {
    --namaya-users-gold: #cca457;
    --namaya-users-dark: #111111;
    --namaya-users-bg: #faf9f6;
    --namaya-users-border: #eae6df;
}

.namaya-auth-box * {
    box-sizing: border-box;
}

.namaya-auth-box {
    font-family: 'Montserrat', sans-serif;
    max-width: 380px;
}

/* ---- Tabs ---- */
.namaya-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--namaya-users-border);
    margin-bottom: 20px;
}

.namaya-auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.namaya-auth-tab.active {
    color: var(--namaya-users-dark);
    border-bottom-color: var(--namaya-users-gold);
}

/* ---- Views ---- */
.namaya-auth-view {
    display: none;
}

.namaya-auth-view.active {
    display: block;
    animation: namayaAuthFade 0.2s ease;
}

@keyframes namayaAuthFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.namaya-auth-row {
    margin-bottom: 14px;
}

.namaya-auth-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.namaya-auth-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.namaya-auth-row input:focus {
    outline: none;
    border-color: var(--namaya-users-gold);
}

/* ---- Password show/hide toggle ---- */
.namaya-password-wrap {
    position: relative;
}

.namaya-password-wrap .namaya-password-input {
    padding-right: 40px;
}

.namaya-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
}

.namaya-password-toggle:hover {
    color: var(--namaya-users-gold);
}

.namaya-password-toggle svg {
    width: 18px;
    height: 18px;
}

.namaya-auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--namaya-users-dark);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.namaya-auth-btn:hover {
    background: var(--namaya-users-gold);
}

.namaya-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.namaya-auth-forgot {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
}

.namaya-auth-forgot a {
    color: #888;
    text-decoration: none;
}

.namaya-auth-forgot a:hover {
    color: var(--namaya-users-gold);
}

.namaya-auth-msg {
    font-size: 13px;
    margin-bottom: 14px;
    min-height: 0;
}

.namaya-auth-msg.error {
    color: #e53935;
}

.namaya-auth-msg.success {
    color: #2e7d32;
}

/* ---- OTP verify view ---- */
.namaya-verify-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.5;
}

.namaya-otp-input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 18px !important;
    font-weight: 600;
}

.namaya-resend-row {
    text-align: center;
    font-size: 12px;
    margin-top: 12px;
    color: #888;
}

.namaya-resend-link {
    color: var(--namaya-users-gold);
    font-weight: 600;
    text-decoration: none;
}

/* ---- Logged in state ---- */
.namaya-auth-loggedin {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
}

.namaya-auth-loggedin .namaya-auth-btn {
    max-width: 200px;
    margin: 12px auto 0;
}

/* ---- Header account icon (added to the site header) ---- */
.account-icon.is-logged-in svg {
    color: var(--namaya-users-gold);
}

/* ================= POPUP ================= */

.namaya-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.namaya-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.namaya-popup-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 30px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.namaya-popup-overlay.active .namaya-popup-modal {
    transform: translateY(0);
}

.namaya-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.namaya-popup-close:hover {
    color: var(--namaya-users-dark);
}

.namaya-popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.namaya-popup-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--namaya-users-gold);
    font-weight: 600;
    margin: 0 0 6px;
}

.namaya-popup-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--namaya-users-dark);
    margin: 0 0 8px;
}

.namaya-popup-sub {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

.namaya-popup-modal .namaya-auth-box {
    max-width: 100%;
}

@media (max-width: 480px) {
    .namaya-popup-modal {
        padding: 28px 20px 24px;
    }
}
