/* Giriş / şifre sıfırlama ekranları (Bootstrap 5 üzerine). Panel AdminLTE'den bağımsızdır. */

:root {
    --auth-accent: #4f46e5;
    --auth-accent-hover: #4338ca;
    --auth-accent-soft: rgba(79, 70, 229, .12);
    --auth-bg: #f5f6fb;
    --auth-surface: #ffffff;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-panel-from: #4338ca;
    --auth-panel-to: #7c3aed;
    --auth-radius: 14px;
}

/* Sistem yöneticisi: koyu, ayrı kimlik */
.auth--system {
    --auth-accent: #f59e0b;
    --auth-accent-hover: #d97706;
    --auth-accent-soft: rgba(245, 158, 11, .14);
    --auth-bg: #0b1220;
    --auth-surface: #111a2e;
    --auth-text: #e5e7eb;
    --auth-muted: #94a3b8;
    --auth-border: #23304a;
    --auth-panel-from: #0f172a;
    --auth-panel-to: #1e293b;
}

html, body {
    height: 100%;
}

body.auth {
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

/* Sol marka paneli */
.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background: linear-gradient(145deg, var(--auth-panel-from), var(--auth-panel-to));
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.auth--system .auth-brand::after {
    background: rgba(245, 158, 11, .08);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .02em;
}

.auth-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    font-size: 1.1rem;
}

.auth-logo-img {
    width: 44px;
    height: 44px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(30, 27, 75, .25));
}

/* Logo ile başlık arasındaki illüstrasyon */
.auth-illustration {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
}

.auth--system .auth-logo-mark {
    background: rgba(245, 158, 11, .18);
    color: var(--auth-accent);
}

.auth-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    max-width: 22ch;
}

.auth-brand p {
    color: rgba(255, 255, 255, .78);
    max-width: 44ch;
    margin: 0;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.auth-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, .88);
}

.auth-features i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    font-size: .8rem;
}

.auth-brand-footer {
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    position: relative;
    z-index: 1;
}

/* Sağ form alanı */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    margin-bottom: 14px;
}

.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.auth-card .auth-subtitle {
    color: var(--auth-muted);
    margin: 0;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--auth-text);
}

.auth-card .form-control {
    height: 48px;
    border-radius: 10px;
    border-color: var(--auth-border);
    background-color: var(--auth-surface);
    color: var(--auth-text);
}

.auth-card .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px var(--auth-accent-soft);
}

.auth-card .form-control::placeholder {
    color: var(--auth-muted);
    opacity: .7;
}

.auth-input-icon {
    position: relative;
}

.auth-input-icon > .fa-solid:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted);
    pointer-events: none;
}

.auth-input-icon .form-control {
    padding-left: 42px;
}

.auth-password .form-control {
    padding-right: 48px;
}

.auth-toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.auth-toggle-password:hover,
.auth-toggle-password:focus-visible {
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    outline: none;
}

.auth-capslock {
    display: none;
    font-size: .8rem;
    color: #b45309;
    margin-top: 6px;
}

.auth-capslock.is-visible {
    display: block;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
    font-size: .9rem;
}

.auth-card .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-link {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}

.btn-auth {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-accent);
    border: 0;
}

.auth--system .btn-auth {
    color: #111827;
}

.btn-auth:hover,
.btn-auth:focus-visible {
    background: var(--auth-accent-hover);
    color: #fff;
}

.auth--system .btn-auth:hover,
.auth--system .btn-auth:focus-visible {
    color: #111827;
}

.btn-auth:disabled {
    opacity: .75;
}

.auth-alert {
    border-radius: 10px;
    border: 0;
    font-size: .9rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.auth-alert i {
    margin-top: 3px;
}

.auth-hint {
    font-size: .8rem;
    color: var(--auth-muted);
    margin-top: 6px;
}

.auth-divider {
    border-top: 1px solid var(--auth-border);
    margin: 28px 0 18px;
}

.auth-footer-note {
    text-align: center;
    font-size: .875rem;
    color: var(--auth-muted);
}

.auth--system .invalid-feedback,
.auth--system .text-danger {
    color: #fca5a5 !important;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 28px 24px;
    }

    .auth-brand h1,
    .auth-brand p,
    .auth-illustration,
    .auth-features,
    .auth-brand-footer {
        display: none;
    }
}

/* Alçak ekranlarda (ör. 1366x768) sol panel taşmasın */
@media (min-width: 992px) and (max-height: 820px) {
    .auth-illustration {
        max-width: 290px;
        margin-bottom: 20px;
    }

    .auth-features {
        margin-top: 20px;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
