/* Login Page CSS */

body {
    background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.top-bar,
.main-header,
.main-footer {
    position: relative;
    z-index: 10;
}

.login-page-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 1;
}


body.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #ea580c 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.login-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.login-header p {
    font-size: 0.95rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

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

.login-body .alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-body .alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.login-body .alert-success {
    background: #d1fae5;
    color: #065f46;
}

.login-body .form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.login-body .form-label i {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.login-body .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.login-body .form-control:focus {
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    outline: none;
}

.login-body .form-control::placeholder {
    color: #9ca3af;
}

.login-body .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #ea580c 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
}

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

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

.login-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

.login-body .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.login-body .btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2), 0 4px 15px rgba(249, 115, 22, 0.3);
    outline: none;
}

.login-body .btn-primary i {
    font-size: 1.1rem;
}

.login-body .text-center a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.login-body .text-center a:hover {
    color: var(--primary-orange);
    background: rgba(249, 115, 22, 0.1);
    transform: translateX(-5px);
}

.login-body .text-center a i {
    transition: transform 0.3s ease;
}

.login-body .text-center a:hover i {
    transform: translateX(-3px);
}

/* Password Toggle */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-orange);
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-header i {
        font-size: 3rem;
    }
    
    .login-header h3 {
        font-size: 1.5rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .login-container {
        max-width: 100%;
    }
}

/* Loading Animation */
.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* Decorative Elements */
.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

