:root {
    --bg-color: #000000;
    --text-color-primary: #ffffff;
    --text-color-dark: #111111;
    --text-color-gray: #666666;
    --accent-purple: #9b4dff;
    --accent-yellow: #ffd700;
    --border-color: #e0e0e0;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--text-color-primary);
    /* Default to white for main content areas */
    color: var(--text-color-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Common Utilities */
.hidden {
    display: none !important;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 15px;
    color: var(--text-color-gray);
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Consent Section Upgrades */
.consent-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consent-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-consent-btn {
    background: none;
    border: none;
    color: var(--text-color-light, #666);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.toggle-consent-btn:hover {
    color: var(--accent-purple);
}

.consent-details {
    overflow: hidden;
    transition: all 0.3s ease;
}

.consent-details[hidden] {
    display: none;
}

.consent-text-box {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color-gray);
    margin-top: 4px;
}

.consent-text-box p {
    margin-bottom: 4px;
}

.consent-text-box p.small {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.8;
}

.consent-text-box strong {
    color: var(--text-color-dark);
}

/* Email Verification UI */
.input-group-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.input-group-row input {
    flex: 1;
}

.secondary-btn {
    /* Style Update: Match input height & White text */
    padding: 0 24px;
    height: 48px;
    /* Matches input height from form.css */
    flex: 0 0 140px;
    /* Kept user's wider preference (~50% wider feel) */

    border: 1px solid #11210d;
    background: #11210d;
    color: #ffffff;
    /* White text for better contrast on dark green */

    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 15px;
}

.secondary-btn:hover {
    opacity: 0.9;
}

.secondary-btn:disabled {
    background: #eee;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

.verify-area {
    margin-top: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.verify-area .input-group-row {
    margin-bottom: 0;
}

.status-msg {
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

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

.status-msg.error {
    color: #d32f2f;
}

.timer-text {
    font-size: 12px;
    color: #d32f2f;
    margin-top: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}