* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #050608;
    --sidebar-bg: #0b0d12;
    --panel-bg: #0b0d12;
    --accent-color: #00e5ff;
    --accent-warning: #ffb800;
    --success-color: #00ff66;
    --error-color: #ff3366;
    --text-main: #f0f2f5;
    --text-muted: #737a8c;
    --border-color: #1a1e29;
    --font-game: 'Exo 2', sans-serif !important;
    --font-ui: 'Exo 2', sans-serif !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-ui);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ================= SOL TARAF: SİNEMATİK ALAN ================= */
.visual-pane {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2572&auto=format&fit=crop') no-repeat center center/cover;
}

.visual-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,6,8,0.2) 0%, rgba(5,6,8,1) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.visual-content h1 {
    font-family: var(--font-game);
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.visual-content h1 span { color: var(--accent-color); }

.visual-content p {
    font-size: 1.1rem;
    color: #a1a6b5;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ================= SAĞ TARAF: SIDEBAR PANEL ================= */
.auth-sidebar {
    width: 480px;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 60px 50px;
    position: relative;
    z-index: 10;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.auth-sidebar.wide {
    width: 600px;
}

.auth-header { margin-bottom: 40px; }

.auth-header h2 {
    font-family: var(--font-game);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-header.warning h2::before {
    content: '';
    display: block;
    width: 10px; height: 10px;
    background-color: var(--accent-warning);
    box-shadow: 0 0 10px var(--accent-warning);
    border-radius: 50%;
}

.auth-header p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* ================= SEKMELER ================= */
.tab-group {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-game);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--accent-color); }

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 -2px 10px rgba(0, 229, 255, 0.5);
}

/* ================= FORM YAPILARI ================= */
.form-container {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}

.form-container.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-group label {
    font-family: var(--font-game);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.validation-text {
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.validation-text.success { color: var(--success-color); opacity: 1; }
.validation-text.error { color: var(--error-color); opacity: 1; }

.input-control {
    background-color: #12151c;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-control:focus {
    border-color: var(--accent-color);
    background-color: #161a23;
}

.input-control.warning-focus:focus {
    border-color: var(--accent-warning);
}

/* ================= PREMIUM ONAY KUTUSU (CHECKBOX) ================= */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 5px 0 25px 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-container {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    position: absolute;
    top: 0; left: 0;
    width: 18px; height: 18px;
    background-color: #12151c;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.checkbox-group:hover .checkmark {
    border-color: rgba(0, 229, 255, 0.5);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid #050608;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    transition: all 0.2s ease;
}

.checkbox-label a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ================= BUTON VE LINKLER ================= */
.btn-submit {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 18px;
    font-family: var(--font-game);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #00cce6;
    transform: translateY(-2px);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit.warning {
    background-color: var(--accent-warning);
}
.btn-submit.warning:hover {
    background-color: #ffc833;
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2);
}

.btn-submit.disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-submit.disabled.active {
    background-color: var(--accent-color);
    color: #000;
    cursor: pointer;
}
.btn-submit.disabled.active:hover {
    background-color: #00cce6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}


.forgot-pass {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pass:hover { color: var(--accent-color); }

.back-link {
    margin-top: 25px;
    text-align: center;
    font-family: var(--font-game);
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-link:hover { color: var(--accent-color); }

.server-status {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px; height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,255,102,0.6);
}

/* ================= BAŞARI DURUMU ================= */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease forwards;
}

.radar-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-icon::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 229, 255, 0.2);
    animation: radarPulse 2s infinite;
}

.radar-icon::after {
    content: '✓';
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.shield-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--success-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.shield-icon::after {
    content: '🛡️';
    font-size: 1.8rem;
}

.success-message h3 {
    font-family: var(--font-game);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.success-message p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-return {
    width: 100%;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 16px;
    font-family: var(--font-game);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-return:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* ================= SÖZLEŞME VE METİN ALANLARI ================= */
.doc-sidebar {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
}

.doc-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    color: var(--text-muted);
    font-family: var(--font-game);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.doc-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.doc-tab.active {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: inset 0 -4px 0 var(--accent-color);
}

.doc-content-area {
    flex: 1;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scrollable-text {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    color: #a1a6b5;
    font-size: 0.95rem;
    line-height: 1.6;
}

.scrollable-text::-webkit-scrollbar { width: 6px; }
.scrollable-text::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 3px; }
.scrollable-text::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.scrollable-text::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.scrollable-text h3 {
    font-family: var(--font-game);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scrollable-text h3:first-child { margin-top: 0; }

.scrollable-text p { margin-bottom: 15px; }

.scrollable-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
    list-style-type: none;
}

.scrollable-text li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 15px;
}

.scrollable-text li::before {
    content: '>';
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-color);
    font-family: var(--font-game);
    font-weight: bold;
}

.doc-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.doc-section.active { display: block; }

@media (max-width: 900px) {
    body { flex-direction: column; }
    .visual-pane { display: none; }
    .auth-sidebar { width: 100%; height: 100vh; box-shadow: none; border-left: none; }
    .auth-sidebar.wide { width: 100%; }
}

body, button, input, select, textarea, .swal2-popup, .swal2-title, .swal2-html-container {
    font-family: 'Exo 2', sans-serif !important;
}
