@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.5); }
    100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 15%;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 5%;
    animation-delay: 5s;
}

/* Logo Section */
.logo-section {
    animation: fadeInUp 1s ease-out;
    z-index: 2;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-background {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    animation: pulse 3s infinite;
    margin-bottom: 15px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideInLeft 1s ease-out 0.3s both;
    z-index: 2;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card-header-custom {
    padding: 30px 30px 15px 30px;
    text-align: center;
    border-bottom: none;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

.card-body-custom {
    padding: 30px;
}

/* Enhanced Form Styling */
.login-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.login-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
    transform: translateY(-2px);
}

.login-card .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
}

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

/* Footer Section */
.footer-section {
    animation: fadeInUp 1s ease-out 0.6s both;
    z-index: 2;
    position: relative;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .login-card {
        margin: 20px;
        border-radius: 20px;
    }
    
    .card-header-custom, .card-body-custom {
        padding: 20px;
    }
    
    .particle {
        display: none;
    }
}

/* Form Header Styling */
.form-header {
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.welcome-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

/* Beautiful Form Styling */
.beautiful-form {
    width: 100%;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Input Wrapper with Icons */
.input-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.beautiful-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 45px 14px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
}

.beautiful-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-1px);
    outline: none;
}

.beautiful-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #667eea;
}

/* Beautiful Checkbox */
.remember-me-section {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.beautiful-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
}

.beautiful-checkbox:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.remember-label {
    color: #374151;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Beautiful Button */
.beautiful-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.beautiful-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.beautiful-btn:active:not(:disabled) {
    transform: translateY(0);
}

.beautiful-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.button-content, .loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Beautiful Spinner */
.beautiful-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-weight: 500;
}

/* Beautiful Alert */
.beautiful-alert {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-left: 4px solid #dc2626;
    margin-bottom: 20px;
    padding: 16px;
    font-weight: 500;
}

/* Validation Messages */
.validation-message {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .beautiful-input {
        padding: 12px 40px 12px 14px;
    }
    
    .beautiful-btn {
        padding: 14px 20px;
    }
}