/**
 * Giriş — tam ekran blueprint / komuta merkezi arka plan, ortalanmış form
 */

.login-shell {
    margin: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    overflow-x: hidden;
}

/* ---- Tam ekran arka plan ---- */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        #022c43 0%,
        #064e7a 22%,
        #0c4a6e 45%,
        #1d4ed8 72%,
        #3b82f6 88%,
        #60a5fa 100%
    );
}

.login-bg__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 70% at 92% 18%, rgba(255, 255, 255, 0.35), transparent 52%),
        radial-gradient(ellipse 50% 45% at 78% 35%, rgba(147, 197, 253, 0.4), transparent 50%),
        radial-gradient(ellipse 40% 50% at 15% 75%, rgba(6, 78, 120, 0.5), transparent 55%);
}

.login-bg__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(147, 197, 253, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, 0.22) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: loginMeshShift 24s linear infinite;
}

@keyframes loginMeshShift {
    to { transform: translate(28px, 28px); }
}

.login-bg__beam {
    position: absolute;
    top: -25%;
    left: -35%;
    width: 95%;
    height: 150%;
    background: linear-gradient(
        108deg,
        transparent 0%,
        rgba(56, 189, 248, 0.14) 38%,
        rgba(129, 140, 248, 0.2) 52%,
        rgba(56, 189, 248, 0.12) 66%,
        transparent 100%
    );
    animation: loginBeam 14s ease-in-out infinite alternate;
}

@keyframes loginBeam {
    0% { transform: translateX(-6%) rotate(0deg); opacity: 0.75; }
    100% { transform: translateX(10%) rotate(1.5deg); opacity: 1; }
}

.login-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
}

.login-bg__orb--a {
    width: min(45vw, 340px);
    height: min(45vw, 340px);
    background: rgba(56, 189, 248, 0.5);
    top: 8%;
    right: 6%;
    animation: loginOrbDrift 16s ease-in-out infinite;
}

.login-bg__orb--b {
    width: min(40vw, 300px);
    height: min(40vw, 300px);
    background: rgba(167, 139, 250, 0.42);
    bottom: 12%;
    left: 5%;
    animation: loginOrbDrift 20s ease-in-out infinite reverse;
}

@keyframes loginOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -20px) scale(1.06); }
}

.login-bg__float {
    position: absolute;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-bg__float--1 {
    width: 128px;
    height: 92px;
    top: 14%;
    right: 10%;
    animation: loginFloat1 7s ease-in-out infinite;
}

.login-bg__float--2 {
    width: 104px;
    height: 76px;
    bottom: 16%;
    right: 12%;
    animation: loginFloat2 8s ease-in-out infinite;
}

.login-bg__float--3 {
    width: 88px;
    height: 64px;
    top: 48%;
    left: 7%;
    animation: loginFloat3 9s ease-in-out infinite;
}

.login-bg__float--1::after,
.login-bg__float--2::after,
.login-bg__float--3::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 16px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.38);
}

.login-bg__float--1::before,
.login-bg__float--2::before,
.login-bg__float--3::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 32px;
    top: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
}

@keyframes loginFloat1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

@keyframes loginFloat2 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(14px) rotate(-1deg); }
}

@keyframes loginFloat3 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

/* ---- Orta sütun: form + footer ---- */
.login-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-panel__main {
    width: 100%;
}

.login-card-premium {
    border-radius: 1.25rem;
    padding: 2.25rem 1.85rem 1.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 24px 56px -12px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: loginCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card-premium__logo {
    animation: loginFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.login-card-premium__logo img {
    height: 48px;
    width: auto;
}

.login-card-premium__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem;
    animation: loginFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.login-card-premium__subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.35rem;
    animation: loginFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-field {
    animation: loginFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-field--1 { animation-delay: 0.2s; }
.login-field--2 { animation-delay: 0.26s; }
.login-field--3 { animation-delay: 0.32s; }
.login-field--4 { animation-delay: 0.38s; }

.login-card-premium .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.login-input-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.login-input-wrap:focus-within {
    border-color: var(--primary-color, #4e73df);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
    background: #fff;
}

.login-input-wrap .input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    color: #64748b;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.login-input-wrap .form-control {
    border: none;
    background: transparent;
    padding: 0.6rem 0.85rem;
    font-size: 0.9375rem;
}

.login-input-wrap .form-control:focus {
    box-shadow: none;
}

.login-card-premium .form-check-input:checked {
    background-color: var(--primary-color, #4e73df);
    border-color: var(--primary-color, #4e73df);
}

.btn-login-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #5a7fef 0%, var(--primary-color, #4e73df) 45%, var(--primary-dark, #2e59d9) 100%);
    box-shadow: 0 4px 14px rgba(78, 115, 223, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-login-submit:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.45);
    transform: translateY(-1px);
}

.login-card-premium__footer-note {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.72rem;
    color: #94a3b8;
    animation: loginFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.login-alert {
    border-radius: 0.55rem;
    font-size: 0.8125rem;
    animation: loginShake 0.45s ease;
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-site-footer {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    animation: loginFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.login-site-footer p {
    margin: 0;
}

.login-site-footer__line {
    margin-bottom: 0.3rem;
}

.login-site-footer__link {
    color: #e0f2fe;
    text-decoration: none;
    font-weight: 600;
}

.login-site-footer__link:hover {
    color: #fff;
    text-decoration: underline;
}

.login-site-footer__credit {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 575.98px) {
    .login-bg__float--1 {
        width: 88px;
        height: 64px;
        top: 10%;
        right: 4%;
    }

    .login-bg__float--2 {
        width: 72px;
        height: 54px;
        bottom: 12%;
        right: 6%;
    }

    .login-bg__float--3 {
        width: 64px;
        height: 48px;
        left: 4%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-bg__mesh,
    .login-bg__beam,
    .login-bg__orb--a,
    .login-bg__orb--b,
    .login-bg__float--1,
    .login-bg__float--2,
    .login-bg__float--3,
    .login-card-premium,
    .login-card-premium__title,
    .login-card-premium__subtitle,
    .login-field,
    .login-card-premium__footer-note,
    .login-site-footer,
    .login-alert {
        animation: none !important;
    }

    .login-bg__mesh {
        transform: none;
    }
}
