/* ── Login Page — Contact Admin Section ── */
.contact-admin-section {
    margin-top: 16px;
    text-align: center;
}

.btn-contact-admin {
    background: transparent;
    border: 1px solid var(--border, #ccc);
    color: var(--text-2, #666);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-contact-admin:hover {
    border-color: var(--primary, #B8960C);
    color: var(--primary, #B8960C);
    background: rgba(184, 150, 12, 0.06);
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: var(--surface, #fff);
    border-radius: 14px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 17px;
    color: var(--text-1, #111);
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-2, #666);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.modal-close:hover {
    background: var(--surface-2, #f0f0f0);
}

.modal-desc {
    color: var(--text-2, #555);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border, #ccc);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    background: var(--surface, #fff);
    color: var(--text-1, #111);
}

/* ── Waiting ── */
.waiting-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
}

.waiting-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border, #ccc);
    border-top-color: var(--primary, #B8960C);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 16px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.waiting-hint {
    font-size: 12px;
    color: var(--text-3, #888);
    text-align: center;
    margin-bottom: 16px;
}

.btn-secondary-sm {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 1px solid var(--border, #ccc);
    color: var(--text-2, #666);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

/* ── Code Ready ── */
.code-ready-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
}

.generated-code-display {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    color: var(--primary, #B8960C);
    background: rgba(184, 150, 12, 0.08);
    border: 2px dashed var(--primary, #B8960C);
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
    font-family: monospace;
    user-select: all;
}

.btn-copy-code {
    display: block;
    width: 100%;
    background: var(--surface-2, #f5f5f5);
    border: 1px solid var(--border, #ccc);
    color: var(--text-1, #111);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.btn-copy-code:hover {
    background: var(--border, #e0e0e0);
}

.code-instruction {
    font-size: 12px;
    color: var(--text-3, #888);
    text-align: center;
    margin-bottom: 8px;
}

.code-expires-info {
    font-size: 12px;
    color: var(--danger, #c62828);
    text-align: center;
    margin-bottom: 16px;
}

/* ── Admin Code Box (in OTP form) ── */
.admin-code-box {
    background: rgba(184, 150, 12, 0.07);
    border: 1px solid var(--primary, #B8960C);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
}

.admin-code-box.hidden {
    display: none;
}

.admin-code-label {
    font-size: 12px;
    color: var(--text-2, #666);
    margin-bottom: 8px;
}

.admin-code-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--primary, #B8960C);
    font-family: monospace;
    margin-bottom: 10px;
    user-select: all;
}

.admin-code-expires {
    font-size: 11px;
    color: var(--text-3, #888);
    margin-top: 6px;
}

/* ── Forgot password link ── */
.forgot-link {
    font-size: 12px;
    color: var(--primary, #B8960C);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}