@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

:root {
    --theme-color: #ffffff; /* Varsayılan */
    --theme-glow: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(10, 10, 10, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.4);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* --- TEMA RENKLERİ --- */
body.theme-red { --theme-color: #ff2a2a; --theme-glow: rgba(255, 42, 42, 0.25); }
body.theme-blue { --theme-color: #00e5ff; --theme-glow: rgba(0, 229, 255, 0.25); }
body.theme-green { --theme-color: #00ff88; --theme-glow: rgba(0, 255, 136, 0.25); }
body.theme-purple { --theme-color: #d500f9; --theme-glow: rgba(213, 0, 249, 0.25); }
body.theme-orange { --theme-color: #ff9900; --theme-glow: rgba(255, 153, 0, 0.25); }
body.theme-dark { --theme-color: #ffffff; --theme-glow: rgba(255, 255, 255, 0.1); }

body {
    background-color: #050505;
    /* İnce, karanlık grid (kareli) arkaplan */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Arkaplandaki Renkli Parlama (Kareleri renklendiren kısım) */
body::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    transition: all 0.8s ease;
}

/* SİYAH CAM (Dark Glass) Konteyner */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
    padding: 45px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    text-align: center;
}

h2 { font-size: 26px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0.5px; }
p.subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

input[type="text"], input[type="password"], input[type="email"], select {
    width: 100%; padding: 16px 20px; margin-bottom: 20px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--text-main);
    font-size: 15px; outline: none; transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* --- STANDART BUTON (Ana Butonlar) --- */
button {
    width: 100%; padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
}

button:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #000; /* Buton üzerine gelince yazı siyah olur, buton parlar */
    box-shadow: 0 0 20px var(--theme-glow);
}

/* --- İKİNCİL BUTON (Farklı Kod Gir vb. için özel class) --- */
button.btn-secondary {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-muted) !important;
}

button.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* --- UYARILAR VE BİLGİ KUTULARI --- */
.alert { 
    padding: 15px; border-radius: 10px; margin-bottom: 20px; 
    font-size: 14px; font-weight: 500; border-left: 4px solid; 
    text-align: left; background: rgba(0,0,0,0.4); 
}
.alert-error { border-color: #ff3333; color: #ff6666; }
.alert-success { border-color: #00ff88; color: #00ff88; }

.result-box {
    background: rgba(0,0,0,0.4); padding: 20px; border-radius: 12px;
    margin-top: 10px; text-align: left; border: 1px solid var(--glass-border);
}
.result-box p { 
    color: var(--text-muted); margin-bottom: 10px; font-size: 14px; 
    display: flex; flex-direction: column; gap: 5px;
}
.result-box p:last-child { margin-bottom: 0; }
.result-box span { 
    color: var(--theme-color); font-weight: 600; font-size: 16px; letter-spacing: 0.5px;
}