:root {
    --primary-color: #4e73df;
    --primary-color-hover: #2e59d9;
    --light-gray: #f8f9fc;
    --gray-text: #858796;
    --dark-text: #5a5c69;
    --border-color: #e3e6f0;
}

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(-45deg, #0f172a, #1e3a5f, #4e73df, #06b6d4, #10b981);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.login-page #content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-left: 0 !important;
    width: 100% !important;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.login-card:hover {
    box-shadow:
        0 12px 56px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-card .card-body {
    padding: 2.5rem 2rem;
}

.login-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 0.75rem;
}

.login-header .logo {
    width: 100px;
    height: auto;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.login-header .logo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(79, 110, 247, 0.5), 0 0 60px rgba(79, 110, 247, 0.2);
}

.login-company-name h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    margin-bottom: 0;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.form-control-user {
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-control-user::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.form-control-user:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.form-control-user:-webkit-autofill,
.form-control-user:-webkit-autofill:hover,
.form-control-user:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(30, 41, 59, 0.85) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-user {
    border-radius: 14px;
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

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

.login-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.25s;
    letter-spacing: 0.3px;
}

.login-footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
