:root{
    /* Dashboard hissi: koyu sidebar + açık içerik */
    --sidebar-bg: #0b1f3a;   /* koyu lacivert */
    --sidebar-bg-2: #0a294a; /* biraz daha açık ton */
    --surface: #ffffff;      /* kart */
    --page: #f4f7fb;         /* içerik zemini */
    --text: #0f172a;
    --muted: #64748b;
    --border: #e6edf6;

    /* Aksiyon rengi (dashboard buton / vurgu gibi) */
    --primary: #2f74ff;
    --primary-hover: #1f5ee6;

    --danger: #ff4141;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:"Segoe UI", Roboto, Arial, sans-serif;
}

body{
    min-height:100vh;
    background: var(--page);
    color: var(--text);
}

/* Sayfa yerleşimi */
.login-page{
    min-height: 100vh;
    display:flex;
}

/* Sol panel (dashboard sidebar) */
.login-aside{
    width: 360px;
    max-width: 42vw;
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
    color:#fff;
    padding: 28px 22px;
    display:flex;
    flex-direction:column;
    gap: 18px;
    position: relative;
    overflow:hidden;
}

.login-aside::after{
    content:"";
    position:absolute;
    right:-120px;
    top:-120px;
    width:280px;
    height:280px;
    border-radius:999px;
    background: rgba(255,255,255,0.06);
    filter: blur(0px);
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    padding: 10px 10px 14px;
}

.brand-mark{
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    border: 1px solid rgba(255,255,255,0.10);
}

.logo-svg{
    width: 30px;
    height: auto;
    display:block;
    opacity: 0.95;
}

.brand-text .brand-title{
    font-weight:700;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.brand-text .brand-subtitle{
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.aside-note{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.aside-badge{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    display:flex;
    align-items:center;
    justify-content:center;
    flex: 0 0 auto;
}

.aside-note-text strong{
    display:block;
    font-size: 13px;
    margin-bottom: 4px;
}

.aside-note-text span{
    display:block;
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.35;
}

.aside-footer{
    margin-top:auto;
    font-size: 11px;
    opacity: 0.75;
    padding: 10px;
}

/* Sağ taraf */
.login-main{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 26px;
}

.login-card{
    width: 420px;
    max-width: 92vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 26px 26px 20px;
}

.login-card-head{
    margin-bottom: 16px;
}

.login-card-title{
    font-size: 20px;
    font-weight: 700;
}

.login-card-desc{
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.login-form{
    margin-top: 12px;
}

/* Alert */
.alert{
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.alert-error{
    background: rgba(255,65,65,0.12);
    border: 1px solid rgba(255,65,65,0.25);
    color: #b42318;
}

/* Form */
.form-group{
    margin-bottom: 14px;
}

.field-label{
    display:block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px 2px;
}

.input-wrapper{
    position: relative;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    display:flex;
    align-items:center;
    padding: 0 44px 0 42px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input-wrapper:focus-within{
    border-color: rgba(47,116,255,0.45);
    box-shadow: 0 0 0 4px rgba(47,116,255,0.10);
}

.icon-left{
    position:absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
}

.input-wrapper input{
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}

.input-wrapper input::placeholder{
    color: #a6b3c6;
}

/* Göz butonu */
.eye-btn{
    position:absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: #7b8aa5;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: transform .08s ease, background .15s ease;
}

.eye-btn:hover{
    background: #f7f9fd;
}

.eye-btn:active{
    transform: scale(0.98);
}

/* Giriş butonu */
.btn-login{
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color:#fff;
    font-size: 14px;
    font-weight: 600;
    cursor:pointer;
    margin-top: 6px;
    transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
    box-shadow: 0 10px 20px rgba(47,116,255,0.18);
}

.btn-login:hover{
    background: var(--primary-hover);
}

.btn-login:active{
    transform: translateY(1px);
}

/* Kart alt not */
.login-mini-footer{
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Mobil uyum */
@media (max-width: 860px){
    .login-page{
        flex-direction: column;
    }
    .login-aside{
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 22px 22px;
    }
    .login-main{
        padding: 18px;
    }
    .login-card{
        margin-top: -14px;
    }
}

/* ==============================
   Autofill (Chrome/Edge) arka planını kaldır
   ============================== */
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important; /* arkaplanı beyazla */
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--text) !important; /* yazı rengi */
    caret-color: var(--text) !important;
    transition: background-color 9999s ease-out 0s; /* chrome autofill flash fix */
}

/* Firefox autofill */
.input-wrapper input:autofill {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* Seçili yazı (mavi arka plan) rahatsız ediyorsa bunu da yumuşatır */
.input-wrapper input::selection {
    background: rgba(47, 116, 255, 0.18);
}
