/* ============================================================
   Æther — Giriş ekranı (GLOBAL, scoped değil).
   Neden global: <InputText> ayrı bir bileşen olduğu için ürettiği
   <input>'a Login.razor.css'in b-{hash} scope attribute'u ULAŞMAZ;
   bu yüzden alan stilleri burada (.login-bg altına kapsüllenmiş).
   ============================================================ */

.login-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(1100px 760px at 50% -12%, rgba(46, 204, 113, .12), transparent 60%),
        linear-gradient(180deg, rgba(9, 10, 14, .82), rgba(9, 10, 14, .95)),
        url('/img/login-hero.jpg') center / cover no-repeat;
}

/* Yumuşak gezinen zümrüt aura */
.login-aurora {
    position: absolute;
    width: 62vmax;
    height: 62vmax;
    left: 50%;
    top: 50%;
    margin: -31vmax 0 0 -31vmax;
    background: radial-gradient(circle at center, rgba(46, 204, 113, .18), transparent 60%);
    filter: blur(46px);
    pointer-events: none;
    animation: lg-aurora 17s ease-in-out infinite;
}

@keyframes lg-aurora {
    0%, 100% { transform: translate(-12%, -8%) scale(1); opacity: .65; }
    50%      { transform: translate(12%, 10%) scale(1.25); opacity: 1; }
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 432px;
    padding: 44px 40px 30px;
    color: #fff;
    background: linear-gradient(180deg, rgba(28, 30, 40, .80), rgba(19, 20, 27, .76));
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: lg-in .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes lg-in {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.login-back {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px 7px 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: #b8bdca;
    text-decoration: none;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}

    .login-back svg {
        width: 16px;
        height: 16px;
    }

    .login-back:hover {
        color: #fff;
        background: rgba(46, 204, 113, .12);
        border-color: rgba(46, 204, 113, .4);
        transform: translateX(-2px);
    }

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 6px;
}

.login-logo {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 20px;
    animation: lg-glow 3.6s ease-in-out infinite;
}

    .login-logo img {
        width: 76px;
        height: 76px;
        border-radius: 20px;
        display: block;
    }

@keyframes lg-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(46, 204, 113, .22), 0 8px 30px rgba(46, 204, 113, .30); }
    50%      { box-shadow: 0 0 0 1px rgba(46, 204, 113, .45), 0 10px 46px rgba(46, 204, 113, .58); }
}

.login-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-top: 16px;
}

.login-sub {
    font-size: 12px;
    color: #9aa1b4;
    margin-top: 5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.login-field {
    position: relative;
    margin-bottom: 18px;
    animation: lg-fade .7s ease both;
}

    .login-field:nth-of-type(1) { animation-delay: .08s; }
    .login-field:nth-of-type(2) { animation-delay: .15s; }

@keyframes lg-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.login-ic {
    position: absolute;
    left: 15px;
    top: 20px;
    width: 20px;
    height: 20px;
    color: #7b8194;
    pointer-events: none;
    transition: color .2s ease;
}

    .login-ic svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.login-input {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    padding: 24px 16px 8px 46px;
    font-size: 15.5px;
    color: #fff;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .login-input::placeholder { color: transparent; }

    .login-input:focus {
        border-color: #2ECC71;
        background: rgba(46, 204, 113, .06);
        box-shadow: 0 0 0 3px rgba(46, 204, 113, .18);
    }

    .login-input:focus ~ .login-ic { color: #2ECC71; }

.login-label {
    position: absolute;
    left: 47px;
    top: 20px;
    font-size: 15px;
    color: #8a90a2;
    pointer-events: none;
    transform-origin: left center;
    transition: top .18s ease, font-size .18s ease, color .18s ease;
}

.login-input:focus ~ .login-label,
.login-input:not(:placeholder-shown) ~ .login-label {
    top: 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: #2ECC71;
}

.login-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #2ECC71, #1fa055);
    color: #04130a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(46, 204, 113, .32);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

    .login-submit > span { position: relative; z-index: 1; }

    .login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 38px rgba(46, 204, 113, .45);
        filter: brightness(1.04);
    }

    .login-submit:active { transform: translateY(0); box-shadow: 0 8px 20px rgba(46, 204, 113, .3); }

    /* Hover'da parıltı süpürmesi */
    .login-submit::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 60%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
        transform: skewX(-20deg);
        transition: left .6s ease;
    }

    .login-submit:hover::before { left: 130%; }

.login-error {
    background: rgba(231, 76, 60, .14);
    color: #ffb4ab;
    border: 1px solid rgba(231, 76, 60, .34);
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 14px;
    margin-bottom: 18px;
    animation: lg-shake .42s ease;
}

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

.login-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: #6b7180;
}

.login-card .validation-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #ffb4ab;
}

@media (prefers-reduced-motion: reduce) {
    .login-card, .login-field, .login-aurora, .login-logo { animation: none !important; }
    .login-submit::before { display: none; }
}

@media (max-width: 480px) {
    .login-card { padding: 34px 22px 26px; border-radius: 18px; }
}
