/* ------------------------------------------------------------------
   Admin giriş / parola sayfaları
   Site tarafındaki giriş sayfasıyla aynı görünüm (marka moru #5048eb)
------------------------------------------------------------------ */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f9;
    color: #0b1220;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 40px 16px;
}

.auth-split {
    display: flex;
    width: 100%;
    max-width: 960px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 20px;
    box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .04);
    overflow: hidden;
}

/* Sol: illüstrasyon paneli */
.auth-aside {
    position: relative;
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 560px;
    padding: 36px 34px 52px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, #c9c5fb 0%, #a29cf6 55%, #7f77f1 100%);
}

.auth-aside-img {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 108%;
    max-width: none;
    height: auto;
    opacity: .55;
    filter: saturate(.85);
    pointer-events: none;
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(80, 72, 235, .28) 0%, rgba(80, 72, 235, .22) 45%, rgba(64, 56, 214, .72) 100%);
    pointer-events: none;
}

.auth-aside-text {
    position: relative;
    z-index: 1;
    max-width: 340px;
    text-align: center;
}

.auth-aside-text h4 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 14px rgba(40, 32, 140, .35);
}

.auth-aside-text p {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .92);
    margin: 0;
    text-shadow: 0 1px 8px rgba(40, 32, 140, .3);
}

/* Sağ: form */
.auth-form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px 40px;
}

.auth-panel-name {
    margin: 0 0 32px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #5048eb;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #0b1220;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 26px;
}

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 11px 13px;
    border-radius: 11px;
    background: #f1f0fe;
    border: 1px solid #e0defc;
    font-size: 13px;
    line-height: 1.5;
    color: #3f3a9e;
}

.notice i { font-size: 16px; line-height: 1.2; color: #5048eb; }

.field { margin-bottom: 16px; }

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.label-row a {
    font-size: 13px;
    font-weight: 600;
    color: #5048eb;
    text-decoration: none;
}

.label-row a:hover { text-decoration: underline; }

.control { position: relative; }

.control > .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #9aa3b5;
    pointer-events: none;
    transition: color .15s ease;
}

.control:focus-within > .field-icon { color: #5048eb; }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="input"] {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    font-size: 14.5px;
    color: #0b1220;
    background: #fff;
    border: 1px solid #e2e6ef;
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.control .pw-toggle ~ input,
.control input:not(:last-child) { padding-right: 48px; }

.field input::placeholder { color: #b3bac8; }

.field input:focus {
    outline: none;
    border-color: #5048eb;
    box-shadow: 0 0 0 3px rgba(80, 72, 235, .10);
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #6b7280;
    font-size: 17px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.pw-toggle:hover { background: #f3f4f8; color: #0b1220; }

.field-hint {
    display: none;
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
}

.field.has-error input { border-color: #dc2626; }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .10); }
.field.has-error .field-hint { display: block; }

.caps-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 8px;
}

.caps-warning[hidden] { display: none; }

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #5048eb;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 11px;
    border: 1px solid #4038d6;
    background: #5048eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(16, 24, 40, .14), 0 6px 16px -6px rgba(80, 72, 235, .55);
    transition: background-color .18s ease, transform .12s ease;
}

.btn-submit:hover { background: #4339dd; }
.btn-submit:active { transform: translateY(1px); }
.btn-submit i { font-size: 18px; }
.btn-submit.disabled, .btn-submit .disabled { opacity: .75; cursor: default; }

.pw-toggle:focus-visible,
.btn-submit:focus-visible,
.label-row a:focus-visible,
.auth-alt-btn:focus-visible {
    outline: 2px solid rgba(80, 72, 235, .45);
    outline-offset: 2px;
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    font-size: 12.5px;
    color: #9aa3b5;
}

.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e6e9ef;
}

.auth-alt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    border-radius: 11px;
    border: 1px solid #d5dbe5;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    transition: border-color .18s ease, background-color .18s ease;
}

.auth-alt-btn:hover { border-color: #b9c2d0; background: #f8fafc; color: #1f2937; }
.auth-alt-btn i { font-size: 17px; color: #5048eb; }

.page-foot {
    font-size: 12.5px;
    color: #9aa3b5;
}

@media (max-width: 991.98px) {
    .auth-aside { display: none; }
    .auth-split { max-width: 480px; }
}

@media (max-width: 575.98px) {
    .auth-page { padding: 24px 12px; }
    .auth-form { padding: 28px 22px 26px; }
}

/* Demo bilgi notu */
.demo-login{
    display:flex; align-items:center; gap:8px;
    margin:0 0 18px;
    padding:9px 12px;
    border-radius:10px;
    background:rgba(80,72,235,.07);
    font-size:13px; font-weight:500;
    color:#4a43c9;
}
.demo-login > i{ font-size:17px; }
