/* ============================================================
   AUTH PRO — giriş / kayıt / şifre sayfaları kurumsal tasarımı
   login.php yeni markup kullanır; register/forgot/reset eski
   .container markup'ı bu dosyayla otomatik modernleşir.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --au-blue: #003A70;
    --au-blue-2: #0a5ca8;
    --au-orange: #F37021;
    --au-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- shared background ---------- */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #021e3a 0%, #003A70 45%, #0a5ca8 100%) !important;
    position: relative;
    overflow: hidden;
}

/* floating light orbs */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    animation: auFloat 11s ease-in-out infinite alternate;
}
body::before {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #F37021, transparent 65%);
    top: -120px; right: -80px;
}
body::after {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #2e86de, transparent 65%);
    bottom: -140px; left: -60px;
    animation-delay: -5s;
}
@keyframes auFloat {
    from { transform: translateY(-25px) translateX(0) scale(1); }
    to   { transform: translateY(25px) translateX(30px) scale(1.12); }
}

@keyframes auCardIn {
    from { opacity: 0; transform: translateY(26px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes auItemIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- legacy markup compatibility (register / forgot / reset) ---------- */
.container {
    position: relative;
    z-index: 1;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 70px -20px rgba(0, 10, 30, 0.55) !important;
    padding: 38px 36px !important;
    width: 380px !important;
    max-width: 92vw;
    animation: auCardIn 0.55s var(--au-ease) both;
}
.container h2 {
    color: var(--au-blue) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}
.container input {
    padding: 13px 14px !important;
    border-radius: 10px !important;
    border: 1.5px solid #dde3ea !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.container input:focus {
    border-color: var(--au-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 58, 112, 0.12) !important;
    outline: none !important;
}
.container button {
    background: linear-gradient(135deg, var(--au-orange), #d95b10) !important;
    border-radius: 10px !important;
    padding: 13px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px -8px rgba(243, 112, 33, 0.55);
    transition: transform 0.18s var(--au-ease), box-shadow 0.18s var(--au-ease), filter 0.18s ease !important;
}
.container button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px -8px rgba(243, 112, 33, 0.65) !important;
    background: linear-gradient(135deg, var(--au-orange), #d95b10) !important;
}
.container button:active { transform: translateY(0) scale(0.98); }
.container .lang-switcher a { color: var(--au-blue) !important; font-weight: 600; }

/* ---------- LOGIN (yeni split markup) ---------- */
.auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 900px;
    max-width: 94vw;
    min-height: 540px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px -25px rgba(0, 8, 25, 0.65);
    animation: auCardIn 0.6s var(--au-ease) both;
    background: #fff;
}

/* Sol marka paneli */
.auth-brand {
    flex: 1.05;
    background: linear-gradient(160deg, #00294f 0%, #003A70 55%, #084f8f 100%);
    color: #fff;
    padding: 52px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.35), transparent 70%);
    top: -90px; right: -90px;
    animation: auFloat 9s ease-in-out infinite alternate;
}
.auth-brand img.brand-logo {
    width: auto;
    max-width: 240px;
    height: auto;
    margin-bottom: 26px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-sizing: border-box;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    animation: auItemIn 0.6s var(--au-ease) 0.15s both;
}
.auth-brand h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    animation: auItemIn 0.6s var(--au-ease) 0.25s both;
}
.auth-brand p.brand-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0 0 34px;
    animation: auItemIn 0.6s var(--au-ease) 0.35s both;
}
.auth-brand ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-brand ul li {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 0.93rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    animation: auItemIn 0.6s var(--au-ease) both;
}
.auth-brand ul li:nth-child(1) { animation-delay: 0.45s; }
.auth-brand ul li:nth-child(2) { animation-delay: 0.55s; }
.auth-brand ul li:nth-child(3) { animation-delay: 0.65s; }
.auth-brand ul li .fico {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--au-orange);
    font-size: 1rem;
    flex-shrink: 0;
}

/* right form panel */
.auth-form-panel {
    flex: 1;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.auth-form-panel .lang-switcher {
    text-align: right;
    margin-bottom: 22px;
    animation: auItemIn 0.5s var(--au-ease) 0.2s both;
}
.auth-form-panel .lang-switcher a {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7a8698;
    text-decoration: none;
    transition: 0.18s ease;
}
.auth-form-panel .lang-switcher a:hover { background: #eef2f7; color: var(--au-blue); }
.auth-form-panel .lang-switcher a.active { background: var(--au-blue); color: #fff; }

.auth-form-panel h2 {
    color: #14213d;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    animation: auItemIn 0.5s var(--au-ease) 0.3s both;
}
.auth-form-panel .form-sub {
    color: #8a94a6;
    font-size: 0.9rem;
    margin: 0 0 30px;
    animation: auItemIn 0.5s var(--au-ease) 0.38s both;
}

.auth-field { margin-bottom: 18px; position: relative; animation: auItemIn 0.5s var(--au-ease) both; }
.auth-field:nth-of-type(1) { animation-delay: 0.45s; }
.auth-field:nth-of-type(2) { animation-delay: 0.53s; }
.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.auth-field .input-wrap { position: relative; }
.auth-field .input-wrap > i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #9aa5b5;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    pointer-events: none;
}
.auth-field input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid #dde3ea;
    border-radius: 11px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fbfcfe;
}
.auth-field input:focus {
    border-color: var(--au-blue);
    box-shadow: 0 0 0 4px rgba(0, 58, 112, 0.12);
    outline: none;
    background: #fff;
}
.auth-field .input-wrap:focus-within > i { color: var(--au-blue); }

.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--au-orange), #d95b10);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 26px -10px rgba(243, 112, 33, 0.6);
    transition: transform 0.18s var(--au-ease), box-shadow 0.18s var(--au-ease), filter 0.18s ease;
    animation: auItemIn 0.5s var(--au-ease) 0.68s both;
    position: relative;
    overflow: hidden;
}
.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 34px -10px rgba(243, 112, 33, 0.7);
}
.auth-submit:active { transform: translateY(0) scale(0.98); }

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.87rem;
    animation: auItemIn 0.5s var(--au-ease) 0.68s both;
}
.auth-links a {
    color: var(--au-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.auth-links a:hover { color: var(--au-orange); }
.auth-links .muted { color: #8a94a6; font-weight: 500; }

.auth-error {
    background: #fdeaea;
    color: #a12622;
    border: 1px solid #f5c6c4;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    animation: auShake 0.45s ease;
}
@keyframes auShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

/* Mobil */
@media (max-width: 760px) {
    .auth-brand { display: none; }
    .auth-card { min-height: auto; width: 420px; }
    .auth-form-panel { padding: 38px 30px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* "Beni hatirla" onay kutusu
   Formdaki diger ogeler gibi sirayla belirir. Animasyonsuz birakilinca
   digerleri suzulurken bu aninda goruntuye giriyor ve siritiyordu.
   Sira: e-posta 0.45s -> sifre 0.53s -> BU 0.60s -> buton 0.68s */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 16px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
    animation: auItemIn 0.5s var(--au-ease) 0.6s both;
}
.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--au-blue);
    cursor: pointer;
    margin: 0;
}
.auth-remember span { line-height: 1; }
