/* ============================================================
   LOGIN PAGE — Kurumsal Animasyonlu Tasarim
   ============================================================ */

/* --- Reset & Base ------------------------------------------- */
body.login-page {
    min-height: 100vh;
    margin: 0;
    background: #0b1120;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif;
    overflow-x: hidden;
}

/* --- Animated SVG Background -------------------------------- */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.login-bg svg {
    width: 100%;
    height: 100%;
}

/* --- Shell -------------------------------------------------- */
.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

/* --- Layout Card -------------------------------------------- */
.login-layout {
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(28px) saturate(1.6);
    animation: cardEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Hero (left) -------------------------------------------- */
.login-hero {
    position: relative;
    padding: 48px 44px 42px;
    background: linear-gradient(160deg, #0f2847 0%, #153561 40%, #1a3f6e 70%, #1d4b82 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Animated mesh blobs */
.login-hero::before,
.login-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(60px);
}
.login-hero::before {
    width: 400px;
    height: 400px;
    top: -140px;
    right: -100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.login-hero::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.12); }
}

/* Decorative grid dots */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.08;
    background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* --- Brand -------------------------------------------------- */
.login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    animation: fadeSlideUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}
.login-brand-logo:hover {
    transform: scale(1.06) rotate(-2deg);
}

.login-brand-copy h1 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Hero Content ------------------------------------------- */
.login-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeSlideUp 0.7s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-hero h2 {
    margin: 0 0 14px;
    font-size: 2.1rem;
    line-height: 1.15;
    font-weight: 800;
    max-width: 380px;
    background: linear-gradient(135deg, #fff 30%, rgba(147, 197, 253, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-hero p {
    margin: 0;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Feature pills */
.hero-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    animation: fadeSlideUp 0.7s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, color 0.25s ease;
}
.hero-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.hero-pill svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* --- Panel (right) ------------------------------------------ */
.login-panel {
    padding: 48px 44px 42px;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
}

.login-form-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeSlideUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-form-wrap h3 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 800;
    color: #f1f5f9;
}

.login-form-subtitle {
    margin: 0 0 28px;
    font-size: 0.88rem;
    color: rgba(148, 163, 184, 0.8);
}

/* --- Alert -------------------------------------------------- */
.login-alert {
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

/* --- Form Fields -------------------------------------------- */
.login-field {
    margin-bottom: 20px;
    position: relative;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.9);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 1.5px solid rgba(100, 116, 139, 0.25);
    background: rgba(15, 23, 42, 0.5);
    padding: 0 18px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-input::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.login-input:focus {
    outline: 0;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.7);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 0 20px rgba(59, 130, 246, 0.08);
}

/* --- Submit Button ------------------------------------------ */
.login-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 6px;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.4);
}

.login-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Shimmer effect on button */
.login-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    50%  { left: 120%; }
    100% { left: 120%; }
}

/* --- Footer text -------------------------------------------- */
.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.76rem;
    color: rgba(100, 116, 139, 0.45);
    animation: fadeSlideUp 0.7s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Shared animation --------------------------------------- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 991px) {
    .login-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-hero,
    .login-panel {
        padding: 34px 28px;
    }

    .login-hero h2 { font-size: 1.75rem; }
}

@media (max-width: 575px) {
    .login-shell {
        padding: 14px 10px;
    }

    .login-layout {
        border-radius: 20px;
    }

    .login-hero,
    .login-panel {
        padding: 26px 20px;
    }

    .login-brand {
        gap: 10px;
        margin-bottom: 22px;
    }

    .login-brand-logo {
        width: 52px;
        height: 52px;
    }

    .login-hero h2 { font-size: 1.45rem; }

    .login-form-wrap h3 {
        font-size: 1.4rem;
    }

    .login-input,
    .login-submit {
        height: 50px;
        border-radius: 12px;
    }

    .hero-features {
        gap: 6px;
    }

    .hero-pill {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}
