.login-page
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    overflow: hidden;
    background: #080d18;
    color: #ffffff;
}

.login-background
{
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-glow
{
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.13;
}

.login-glow-one
{
    top: -180px;
    right: -150px;
    background: #1687ff;
}

.login-glow-two
{
    bottom: -220px;
    left: -160px;
    background: #00b8e6;
}

.login-grid
{
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.login-container
{
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.login-brand
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.login-brand-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(80,180,255,0.25);
    border-radius: 12px;
    background: rgba(20,35,58,0.8);
    color: #55c4ff;
}

.login-brand-icon svg
{
    width: 27px;
    height: 27px;
}

.login-brand-name
{
    color: #f5f8fc;
    font-size: 17px;
    font-weight: 600;
}

.login-card
{
    width: 100%;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(17,25,40,0.94);
    box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}

.login-card-header
{
    margin-bottom: 26px;
}

.login-card-header h1
{
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.login-card-header p
{
    margin: 0;
    color: #8e9aab;
    font-size: 14px;
    line-height: 1.5;
}

.login-alert
{
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid rgba(255,90,90,0.2);
    border-radius: 10px;
    background: rgba(255,70,70,0.08);
    color: #ff9b9b;
    font-size: 13px;
}

.login-field
{
    width: 100%;
    margin-bottom: 18px;
}

.login-field label
{
    display: block;
    margin: 0 0 8px;
    color: #dce3ec;
    font-size: 13px;
    font-weight: 500;
}

.login-input-wrapper
{
    position: relative;
    width: 100%;
}

.login-input-icon
{
    position: absolute;
    top: 50%;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #69778a;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-icon svg
{
    width: 18px;
    height: 18px;
}

.login-input-wrapper input
{
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 44px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 11px;
    outline: none;
    background: rgba(8,14,24,0.8);
    color: #ffffff;
    font-size: 14px;
    line-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-wrapper input::placeholder
{
    color: #596779;
}

.login-input-wrapper input:focus
{
    border-color: rgba(70,175,255,0.55);
    box-shadow: 0 0 0 3px rgba(45,155,235,0.08);
}

.login-input-wrapper input.has-error
{
    border-color: rgba(255,90,90,0.6);
}

.login-password-toggle
{
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #69778a;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-password-toggle:hover
{
    color: #aebdce;
}

.login-password-toggle svg
{
    width: 18px;
    height: 18px;
}

.login-field-error
{
    margin-top: 6px;
    color: #ff8585;
    font-size: 12px;
    line-height: 1.4;
}

.login-options
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 3px 0 22px;
}

.login-remember
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #8995a6;
    font-size: 12px;
    cursor: pointer;
}

.login-remember input
{
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.login-checkbox
{
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #536174;
    border-radius: 4px;
    background: rgba(8,14,24,0.7);
}

.login-remember input:checked + .login-checkbox
{
    border-color: #1687ff;
    background: #1687ff;
}

.login-remember input:checked + .login-checkbox::after
{
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 1.5px 1.5px 0;
    content: '';
    transform: rotate(45deg);
}

.login-forgot
{
    color: #56bfff;
    font-size: 12px;
    text-decoration: none;
}

.login-forgot:hover
{
    color: #8ad7ff;
    text-decoration: none;
}

.login-button
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: #1687ff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(22,135,255,0.2);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover
{
    background: #2490ff;
    box-shadow: 0 10px 26px rgba(22,135,255,0.28);
}

.login-button:disabled
{
    cursor: not-allowed;
    opacity: 0.8;
}

.login-button-loader
{
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loginSpin 0.7s linear infinite;
}

.login-button.is-loading .login-button-text
{
    display: none;
}

.login-button.is-loading .login-button-loader
{
    display: block;
}

@keyframes loginSpin
{
    from
    {
        transform: rotate(0deg);
    }

    to
    {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px)
{
    .login-page
    {
        padding: 18px;
    }

    .login-card
    {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .login-brand
    {
        margin-bottom: 20px;
    }
}