body {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.login-container {
    background: var(--qa-color-a848765152f3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px var(--qa-color-7371e081cd85);
    padding: 3.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--qa-color-829bbf7deb6d);
}

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

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header .logo {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px -5px var(--qa-color-9e476f470fef);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.login-header .logo:hover {
    transform: rotate(0deg) scale(1.05);
}

.form-floating > .form-control {
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--qa-color-a5a6f8d9e4c4);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px var(--qa-color-480244aff748);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--qa-color-311895d47dc0);
    filter: brightness(1.1);
}

.text-muted {
    color: var(--color-gray-500) !important;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--qa-color-829bbf7deb6d);
    border-top-color: var(--color-surface);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--color-purple);
    text-decoration: underline;
}

.alert {
    border: none;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.loading-spinner {
    display: none;
}

.btn-login.loading .loading-spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    display: none;
}

.system-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-gray-500);
    font-size: 0.85rem;
}

.demo-credentials {
    background: var(--color-gray-50);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.demo-credentials h6 {
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}

.demo-credentials .credential-item {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
}
