html {
    zoom: 0.8;
    background: #0d0a1f;
    min-height: 100vh;
}

body {
    margin: 0;
    min-height: calc(100vh / 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d0a1f 0%, #1a1145 50%, #2a1e5c 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 20px;
}

.login-box {
    background: rgba(30, 25, 70, 0.85);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 40px 36px 24px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

.login-box .logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-box .logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 12px;
}

.login-box .logo .subtitle {
    color: #b8b8d0;
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.login-box-msg {
    text-align: center;
    color: #e8e8f0;
    font-size: 14px;
    margin-bottom: 28px;
}

.login-box-msg i {
    color: #4ade80;
    margin-right: 6px;
}

.form-group {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border-radius: 8px;
    border: 0;
    background: #f0f4f8;
    font-size: 15px;
    color: #1a1a2e;
    transition: box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.4);
    background: #fff;
}

.form-control::placeholder {
    color: #7a8095;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8095;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    user-select: none;
}

.toggle-password:hover {
    color: #1a1a2e;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #3ec46d;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover:not(:disabled) {
    background: #35b360;
}

.btn-login:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-container {
    display: none;
    text-align: center;
    padding: 12px 0;
}

.spinner-container.active {
    display: block;
}

.spinner-container .spinner-text {
    display: block;
    font-size: 12px;
    color: #b8b8d0;
    margin-top: 8px;
}

.alert-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #ff9999;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.alert-error i {
    margin-right: 6px;
}

.login-footer {
    text-align: center;
    color: #8888a8;
    font-size: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px 20px;
    }
    .login-box .logo img {
        max-width: 140px;
    }
}