:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-elevated: #222230;
    --bg-card: rgba(17, 17, 24, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-disabled: #64748b;
    
    --border-primary: rgba(59, 130, 246, 0.15);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(59, 130, 246, 0.3);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    --glow-primary: 0 0 30px rgba(59, 130, 246, 0.2);
    --glow-secondary: 0 0 20px rgba(139, 92, 246, 0.15);
    --glow-accent: 0 0 25px rgba(16, 185, 129, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    height: 100vh;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
        linear-gradient(135deg, var(--bg-primary) 0%, rgba(17, 17, 24, 0.95) 100%);
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grain 15s steps(10) infinite;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.4;
    animation: float 25s infinite linear;
}

.floating-element:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { left: 20%; animation-delay: 3s; }
.floating-element:nth-child(3) { left: 30%; animation-delay: 6s; }
.floating-element:nth-child(4) { left: 40%; animation-delay: 9s; }
.floating-element:nth-child(5) { left: 50%; animation-delay: 12s; }

/* Main Container */
.register-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Left Side - Branding */
.left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    position: relative;
    padding: 60px;
    min-height: 100vh;
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-primary), transparent);
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
    position: relative;
    animation: logoFloat 6s ease-in-out infinite;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 32px rgba(59, 130, 246, 0.3));
    transition: all 0.3s ease;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    /* background: linear-gradient(45deg, var(--primary), var(--secondary)); */
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.brand-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.brand-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    max-width: 300px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Right Side - Form */
.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    background: 
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    overflow-y: auto;
    min-height: 100vh;
}

/* Custom scrollbar */
.right-side::-webkit-scrollbar {
    width: 8px;
}

.right-side::-webkit-scrollbar-track {
    background: transparent;
}

.right-side::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
}

.right-side::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.3);
}

.form-container {
    width: 100%;
    max-width: 480px;
    animation: slideInRight 0.8s ease 0.6s backwards;
    padding: 20px 0;
    margin: auto 0;
}

.form-header {
    text-align: center;
    margin-bottom: 36px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-group:focus-within {
    z-index: 200;
}

/* Password field focus durumunda strength göster */
.form-group:focus-within .password-strength {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input:not([type="radio"]) {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

/* Password input with toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 50px !important;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Ensure browser native icons adapt to dark theme */
.form-group input[type="password"] {
    color-scheme: dark;
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-accent);
    background: var(--bg-tertiary);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Gender Selection */
.gender-options {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.gender-option span {
    display: block;
    padding: 16px 18px;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gender-option span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.gender-option:hover span::before {
    left: 100%;
}

.gender-option input[type="radio"]:checked + span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.gender-option:hover span {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn {
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-primary);
    margin-bottom: 24px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 36px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    background: var(--text-disabled);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    animation: shake 0.5s ease;
    backdrop-filter: blur(10px);
}

.username-status {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 8px;
    display: none;
}

.username-status.checking {
    display: block;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

.username-status.available {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.username-status.unavailable {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* Password Strength Indicator - Popup Style */
.password-strength {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 14px;
    margin-top: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-strength.visible,
.password-strength:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.password-strength::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--border-primary);
}

.password-strength::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--bg-card);
}

.strength-bar {
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
    border-radius: 2px;
    position: relative;
}

.strength-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #ef4444, #f97316);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.strength-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.strength-text {
    font-size: 10px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.strength-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-label.weak {
    color: #ef4444;
}

.strength-label.medium {
    color: #f59e0b;
}

.strength-label.strong {
    color: #10b981;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.password-requirements li {
    font-size: 10px;
    padding: 2px 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.password-requirements li::before {
    content: '●';
    color: var(--text-disabled);
    transition: color 0.3s ease;
    font-size: 7px;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.form-links {
    text-align: center;
    margin-top: 16px;
}

.form-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.form-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-links a:hover::before {
    opacity: 1;
}

.form-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Google Icon Button */
.google-icon-button {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Verification Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal_content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal_content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.03));
    border-radius: 24px;
    z-index: -1;
}

.modal_content h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal_content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
}

.code_inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.code_input {
    width: 56px;
    height: 64px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    font-size: 28px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.code_input:focus {
    outline: none;
    border-color: var(--border-accent);
    background: var(--bg-elevated);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.timer {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.timer::before {
    content: "⏱️";
    font-size: 18px;
}

.verify_btn {
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
}

.verify_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.resend_btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 12px;
}

.resend_btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.resend_btn:disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
    background: none;
    transform: none;
}

/* Animations */
@keyframes grain {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-5%, -10%) rotate(1deg); }
    20% { transform: translate(-15%, 5%) rotate(-1deg); }
    30% { transform: translate(7%, -25%) rotate(2deg); }
    40% { transform: translate(-5%, 25%) rotate(-2deg); }
    50% { transform: translate(-15%, 10%) rotate(1deg); }
    60% { transform: translate(15%, 0%) rotate(-1deg); }
    70% { transform: translate(0%, 15%) rotate(2deg); }
    80% { transform: translate(3%, 35%) rotate(-2deg); }
    90% { transform: translate(-10%, 10%) rotate(1deg); }
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .register-container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .left-side {
        flex: none;
        min-height: 300px;
        padding: 40px;
        text-align: center;
    }

    .left-side::before {
        display: none;
    }

    .left-side::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border-primary), transparent);
    }

    .brand-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .brand-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .brand-subtitle {
        font-size: 16px;
        max-width: 250px;
    }

    .right-side {
        flex: none;
        padding: 40px;
        min-height: auto;
    }

    .form-container {
        max-width: 400px;
        padding: 0;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .register-container {
        display: block;
        height: auto;
    }

    .left-side {
        padding: 30px 20px;
        min-height: 250px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .brand-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .brand-subtitle {
        font-size: 14px;
        max-width: 200px;
    }

    .right-side {
        padding: 30px 20px;
        overflow-y: visible;
    }

    .form-header h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .gender-options {
        gap: 12px;
    }

    .gender-option span {
        padding: 14px 16px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 16px 20px;
        font-size: 15px;
        margin-bottom: 24px;
    }

    .code_inputs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .code_input {
        width: 48px;
        height: 56px;
        font-size: 24px;
    }

    .modal_content {
        padding: 32px 24px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    /* Password strength popup mobile adjustments */
    .password-strength {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
        margin: 0;
        z-index: 1000;
    }

    .password-strength.visible {
        transform: translate(-50%, -50%);
    }

    .password-strength::before,
    .password-strength::after {
        display: none;
    }

    .password-requirements {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

/* Loading Styles */
.loading {
    text-align: center;
    padding: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Verification Section Styles */
.verification-section {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.03);
}

.verification-header {
    text-align: center;
    margin-bottom: 20px;
}

.verification-header h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 20px;
}

.verification-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.verification-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-btn:hover {
    color: var(--primary);
}

/* Code Input Styles for Verification */
.code-inputs-container {
    margin-bottom: 20px;
}

.code-inputs-container label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.code_inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.code_input {
    width: 48px;
    height: 58px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-size: 22px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.code_input:focus {
    border-color: var(--border-accent);
    background: var(--bg-elevated);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.code_input:not(:placeholder-shown) {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Divider Styles */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-primary), transparent);
}

.divider span {
    padding: 0 14px;
    font-weight: 500;
}

/* Google Sign-In Styles */
.g_id_signin {
    margin: 0 auto 20px auto !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.g_id_signin > div {
    margin: 0 auto !important;
}

.g_id_signin iframe {
    margin: 0 auto !important;
    display: block !important;
}

/* KVKK Consent Styles */
.kvkk-consent {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.kvkk-consent:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--border-accent);
}

.kvkk-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    position: relative;
    padding-left: 32px;
    line-height: 1.6;
}

.kvkk-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.kvkk-checkbox .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.kvkk-checkbox:hover .checkmark {
    border-color: var(--border-accent);
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.kvkk-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.kvkk-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kvkk-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.kvkk-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.kvkk-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.kvkk-link:hover {
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.1);
}

/* KVKK Modal Styles */
.kvkk-modal-content {
    max-width: 800px;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kvkk-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.03));
}

.kvkk-modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.kvkk-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-left: 16px;
}

.kvkk-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    transform: rotate(90deg);
}

.kvkk-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.kvkk-modal-body::-webkit-scrollbar {
    width: 8px;
}

.kvkk-modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.kvkk-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.kvkk-section {
    margin-bottom: 32px;
}

.kvkk-section:last-child {
    margin-bottom: 0;
}

.kvkk-section h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kvkk-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.kvkk-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.kvkk-section ul li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    padding: 8px 0 8px 28px;
    position: relative;
}

.kvkk-section ul li::before {
    content: '•';
    color: var(--primary);
    font-size: 20px;
    position: absolute;
    left: 8px;
    top: 6px;
}

.kvkk-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.kvkk-consent-text {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.last-update {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.last-update p {
    color: var(--text-muted);
    font-size: 12px;
}

.kvkk-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.kvkk-accept-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-primary);
}

.kvkk-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* Responsive KVKK Modal */
@media (max-width: 768px) {
    .kvkk-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .kvkk-modal-header {
        padding: 24px 20px 20px;
    }

    .kvkk-modal-header h2 {
        font-size: 20px;
    }

    .kvkk-modal-body {
        padding: 24px 20px;
    }

    .kvkk-section h3 {
        font-size: 16px;
    }

    .kvkk-section p,
    .kvkk-section ul li {
        font-size: 13px;
    }

    .kvkk-modal-footer {
        padding: 20px;
    }
}
