/* DÜZELTME: Global reset ve ortak sınıflar medya sorgularının dışına, en üste alındı. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* DÜZELTME: .form-view tanımlamaları tekrar tekrar yazılmamak üzere birleştirildi */
.form-view {
    display: none;
    width: 100%;
}

.form-view.active {
    display: block;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
/* ---------------- DESKTOP (Geniş Ekran) ---------------- */
@media (min-width: 981px) {
    :root {
        --bg-main: #0b1114;
        --bg-soft: #111a1f;
        --panel: rgba(19, 29, 35, 0.88);
        --panel-2: rgba(17, 25, 30, 0.92);
        --border: rgba(255, 255, 255, 0.08);
        --text: #edf3f1;
        --muted: #9fb0a8;
        --accent: #74d39b;
        --accent-dark: #3aa567;
        --danger: #ff8b8b;
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    }

    html, body {
        width: 100%;
        min-height: 100%;
    }

    body {
        font-family: "Segoe UI", Arial, sans-serif;
        color: var(--text);
        background:
            radial-gradient(circle at top left, rgba(91, 161, 112, 0.18), transparent 30%),
            radial-gradient(circle at bottom right, rgba(38, 93, 77, 0.22), transparent 28%),
            linear-gradient(135deg, #091013 0%, #0d1519 40%, #10191d 100%);
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        overflow-x: hidden;
        position: relative;
    }
    
    /* DÜZELTME: Buradaki .form-view ve .form-view.active tekrarları silindi */

    .bg-layer {
        position: fixed;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
        background-size: 30px 30px;
        opacity: 1.35;
        pointer-events: none;
        z-index: 0;
    }

    /* ... Geri kalan Desktop CSS kodların tamamen aynı ... */
    /* (Kısa tutmak adına sadece hatalı kısımları revize edip ekledim, masaüstü tasarımların sağlam) */
    
    .topbar { width: min(1200px, 92%); margin: 0 auto; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; position: relative; z-index: 2; }
    .logo-area { display: flex; align-items: center; gap: 14px; }
    .logo-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #b5f0c8); color: #082012; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; box-shadow: var(--shadow); }
    .logo-text h1 { font-size: 24px; margin-bottom: 4px; letter-spacing: 0.3px; }
    .logo-text p { font-size: 13px; color: var(--muted); }
    .topnav { display: flex; gap: 22px; flex-wrap: wrap; }
    .topnav a { text-decoration: none; color: var(--text); font-size: 15px; transition: 0.2s ease; }
    .topnav a:hover { color: var(--accent); }
    .main-area { width: min(1200px, 92%); margin: 0 auto; min-height: calc(100vh - 150px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: center; position: relative; z-index: 2; padding: 10px 0 40px; }
    .intro-panel { padding: 24px 0; }
    .badge { display: inline-block; padding: 10px 16px; border-radius: 999px; background: rgba(116, 211, 155, 0.12); border: 1px solid rgba(116, 211, 155, 0.25); color: #d8ffe6; font-size: 13px; margin-bottom: 20px; }
    .intro-panel h2 { font-size: 48px; line-height: 1.15; max-width: 720px; margin-bottom: 18px; }
    .intro-panel > p { font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 720px; margin-bottom: 28px; }
    .status-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 18px; max-width: 760px; }
    .status-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
    .status-card h3 { font-size: 18px; margin-bottom: 10px; color: #f1fbf5; }
    .status-card p { font-size: 14px; line-height: 1.7; color: var(--muted); }
    .login-panel { display: flex; justify-content: center; align-items: center; }
    .login-box { width: 100%; max-width: 430px; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); backdrop-filter: blur(12px); position: relative; }
    .login-box::before { content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, rgba(116, 211, 155, 0.35), rgba(255, 255, 255, 0.04)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
    .login-head { margin-bottom: 24px; }
    .login-head h3 { font-size: 30px; margin-bottom: 8px; }
    .login-head p { color: var(--muted); font-size: 14px; }
    .form-group { margin-bottom: 18px; }
    .form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #dbe8e2; }
    .form-group input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--panel-2); color: var(--text); padding: 0 14px; font-size: 15px; outline: none; transition: 0.2s ease; }
    .form-group input:focus { border-color: rgba(116, 211, 155, 0.7); box-shadow: 0 0 0 4px rgba(116, 211, 155, 0.08); }
    .captcha-image-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .captcha-image-box { width: 230px; min-width: 230px; height: 40px; border-radius: 10px; border: 1px solid rgba(116, 211, 155, 0.22); background: rgb(232, 247, 238); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
    .captcha-image-box img { display: block; width: 230px; height: 40px; margin: 0; padding: 0; }
    .captcha-refresh-btn { height: 52px; min-width: 90px; padding: 0 16px; border: 1px solid rgba(116, 211, 155, 0.22); border-radius: 14px; background: rgba(116, 211, 155, 0.08); color: #d8ffe6; font-size: 14px; font-weight: 700; cursor: pointer; transition: 0.2s ease; }
    .captcha-refresh-btn:hover { background: rgba(116, 211, 155, 0.14); border-color: rgba(116, 211, 155, 0.42); }
    .login-btn { width: 100%; height: 54px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #072111; font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 4px; transition: 0.2s ease; }
    .login-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
    .form-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
    .form-links a { font-size: 14px; color: #b7f5cb; text-decoration: none; }
    .form-links a:hover { text-decoration: underline; }
    .login-message { min-height: 22px; margin-top: 14px; font-size: 14px; color: var(--danger); }
    .footer { width: min(1200px, 92%); margin: 0 auto; padding: 14px 0 24px; position: relative; z-index: 2; }
    .footer p { text-align: center; color: var(--muted); font-size: 13px; }
}

/* ---------------- MOBILE (Mobil Ekran) ---------------- */
@media (max-width: 980px) {
    :root {
        --bg-main: #0b1114;
        --bg-soft: #111a1f;
        --panel: rgba(19, 29, 35, 0.88);
        --panel-2: rgba(17, 25, 30, 0.92);
        --border: rgba(255, 255, 255, 0.08);
        --text: #edf3f1;
        --muted: #9fb0a8;
        --accent: #74d39b;
        --accent-dark: #3aa567;
        --danger: #ff8b8b;
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    }
  
    html, body { width: 100%; min-height: 100%; }
    body { font-family: "Segoe UI", Arial, sans-serif; color: var(--text); background: radial-gradient(circle at top left, rgba(91, 161, 112, 0.18), transparent 30%),radial-gradient(circle at bottom right, rgba(38, 93, 77, 0.22), transparent 28%), linear-gradient(135deg, #091013 0%, #0d1519 40%, #10191d 100%); background-repeat: no-repeat; background-size: cover; overflow-x: hidden; position: relative; }  
    .bg-layer { position: fixed; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.28; pointer-events: none; z-index: 0; }
    .topbar { width: calc(100% - 32px); margin: 0 auto; padding: 18px 0 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 2; }
    .logo-area { display: flex; align-items: center; gap: px; min-width: 0; }
    .logo-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #b5f0c8); color: #082012; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex-shrink: 0; box-shadow: var(--shadow); margin-right: 2px;}
    .logo-text h1 { font-size: 15px; line-height: 1.2; margin-bottom: 2px; }
    .logo-text p { font-size: 10px; color: var(--muted); line-height: 1.3; }
    .topnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 6px; }
    .topnav a { text-decoration: none; color: var(--text); font-size: 11px; transition: 0.2s ease; white-space: nowrap; }
    .topnav a:hover { color: var(--accent); }
    .main-area { width: calc(100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; align-content: start; position: relative; z-index: 2; padding: 8px 0 18px; }
    .intro-panel { padding: 4px 0 0; }
    .badge { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(116, 211, 155, 0.12); border: 1px solid rgba(116, 211, 155, 0.25); color: #d8ffe6; font-size: 11px; margin-bottom: 14px; }
    .intro-panel h2 { font-size: 27px; line-height: 1.16; margin-bottom: 14px; max-width: 100%; }
    .intro-panel > p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 100%; margin-bottom: 18px; }
    .status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
    .status-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); backdrop-filter: blur(8px); min-height: 84px; }
    .status-card h3 { font-size: 13px; line-height: 1.35; margin-bottom: 8px; color: #f1fbf5; }
    .status-card p { font-size: 11px; line-height: 1.55; color: var(--muted); }
    .login-panel { display: block; width: 100%; margin-top: 0; }
    .login-box { width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px); position: relative; }
    .login-box::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; background: linear-gradient(135deg, rgba(116, 211, 155, 0.35), rgba(255, 255, 255, 0.04)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
    
    /* DÜZELTME: .login-box .form-view ve active tekrarları silindi */

    .login-head { margin-bottom: 18px; }
    .login-head h3 { font-size: 22px; margin-bottom: 6px; }
    .login-head p { color: var(--muted); font-size: 12px; }
    .form-group { margin-bottom: 14px; }
    .form-group label { display: block; margin-bottom: 7px; font-size: 12px; color: #dbe8e2; }
    .form-group input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--panel-2); color: var(--text); padding: 0 12px; font-size: 13px; outline: none; transition: 0.2s ease; }
    .form-group input:focus { border-color: rgba(116, 211, 155, 0.7); box-shadow: 0 0 0 4px rgba(116, 211, 155, 0.08); }
    .captcha-image-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .captcha-image-box { width: 170px; min-width: 170px; height: 32px; border-radius: 9px; border: 1px solid rgba(116, 211, 155, 0.22); background: rgb(232, 247, 238); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
    .captcha-image-box img { display: block; width: 170px; height: 32px; margin: 0; padding: 0; }
    .captcha-refresh-btn { height: 36px; min-width: 64px; padding: 0 12px; border: 1px solid rgba(116, 211, 155, 0.22); border-radius: 12px; background: rgba(116, 211, 155, 0.08); color: #d8ffe6; font-size: 11px; font-weight: 700; cursor: pointer; transition: 0.2s ease; }
    .captcha-refresh-btn:hover { background: rgba(116, 211, 155, 0.14); border-color: rgba(116, 211, 155, 0.42); }
    .login-btn { width: 100%; height: 46px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #072111; font-size: 14px; font-weight: 800; cursor: pointer; margin-top: 2px; transition: 0.2s ease; }
    .form-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
    .form-links a { font-size: 12px; color: #b7f5cb; text-decoration: none; }
    .login-message { min-height: 18px; margin-top: 12px; font-size: 12px; color: var(--danger); }
    .footer { width: calc(100% - 32px); margin: 0 auto; padding: 8px 0 16px; position: relative; z-index: 2; }
    .footer p { text-align: center; color: var(--muted); font-size: 11px; }
}