body {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    margin-bottom: 0 !important;
    overflow: hidden;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(105, 108, 255, 0.1), 0 8px 24px rgba(105, 108, 255, 0.08);
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-sizing: border-box;
}

.brand-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #696cff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
}

.brand-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #696cff 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.login-form {
    margin-top: 1.5rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-floating > .form-control {
    height: 52px;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8f9fa;
}

.form-floating > .form-control:focus {
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.15);
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--accent-color);
}

.login-btn {
    width: 100%;
    height: 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #696cff 0%, #585cd9 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 0.8rem;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(105, 108, 255, 0.3);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(255, 62, 29, 0.1);
    border: 1px solid rgba(255, 62, 29, 0.2);
    color: var(--error-color);
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1.2rem;
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .brand-logo {
        margin-bottom: 1.2rem;
    }
    
    .login-form {
        margin-top: 1.2rem;
    }
    
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .form-floating > .form-control {
        height: 48px;
    }
    
    .login-btn {
        height: 44px;
        font-size: 1rem;
    }
    
    .error-message {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}

@media (max-height: 600px) {
    .login-card {
        padding: 1.5rem 2rem;
        max-height: calc(100vh - 1rem);
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .brand-logo {
        margin-bottom: 1rem;
    }
    
    .login-form {
        margin-top: 1rem;
    }
    
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .form-floating > .form-control {
        height: 48px;
    }
    
    .login-btn {
        height: 44px;
        margin-top: 0.5rem;
    }
    
    .error-message {
        padding: 0.7rem;
        margin-top: 0.8rem;
        font-size: 0.85rem;
    }
}