/* ===== BASE STYLES (Candidate Portal Signup) ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --admin-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    --company-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --candidate-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

    --bg-dark: #0f172a;
    --surface-dark: rgba(30, 41, 59, 0.5);
    --surface-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 40%),
        #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    color: var(--text-main);
}

.auth-card-premium {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--candidate-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.premium-form-group {
    margin-bottom: 24px;
}

.flex-row {
    display: flex;
    gap: 20px;
}

.premium-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.premium-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.premium-input-error {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.premium-input-error:focus {
    border-color: #f87171;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #fca5a5;
}

.premium-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
}

.premium-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.premium-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
}

.auth-link {
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    filter: brightness(1.2);
}

.auth-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.auth-error {
    color: #fca5a5;
    font-size: 14px;
    padding: 10px 16px;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.candidate-theme .nav-link-item.active {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

@media (max-width: 600px) {
    .flex-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ===== Warm Dark Theme (body.theme-dark.candidate-dashboard-body) ===== */
body.theme-dark.candidate-dashboard-body .auth-body {
    background: radial-gradient(circle at top right, rgba(16,185,129,0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(59,130,246,0.1), transparent 40%),
        #1e1e1e;
}
body.theme-dark.candidate-dashboard-body .auth-card-premium {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .premium-input {
    background: #252525;
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .premium-input:focus {
    border-color: #3b82f6;
    background: #383838;
}
body.theme-dark.candidate-dashboard-body .premium-label {
    color: #999;
}
body.theme-dark.candidate-dashboard-body .premium-input-error {
    border-color: #f87171;
    background: rgba(248,113,113,0.08);
}
body.theme-dark.candidate-dashboard-body .field-error {
    color: #fca5a5;
}
body.theme-dark.candidate-dashboard-body .auth-footer {
    color: #999;
}
body.theme-dark.candidate-dashboard-body .auth-error {
    background: rgba(220,38,38,0.15);
    color: #fca5a5;
}
