

/* Animated background elements */
.main-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    z-index: 1;

}
.main-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.main-header-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.page-banner-login {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-banner-login h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.page-banner-login p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-content-login {
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 1px solid #fc8181;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    animation: shake 0.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(252, 129, 129, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4); }
}

.form-group-login {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-login label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
    margin-left: 4px;
}

.form-group-login input {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-group-login input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group-login input:hover {
    border-color: #cbd5e0;
    background: white;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
}

.security-features {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #718096;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.security-feature::before {
    content: "✓";
    color: #48bb78;
    font-weight: bold;
}

/* Loading state */
.btn-primary.loading {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Input validation states */
.form-group-login input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #fc8181;
    background: #fff5f5;
}

.form-group-login input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #68d391;
    background: #f0fff4;
}

/* Error state for inputs */
.input-error {
    border-color: #fc8181 !important;
    background: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}

@media (max-width: 600px) {
    .page-banner-login h1 {
        font-size: 2rem;
    }

    .login-container {
        padding: 30px 25px;
        margin: 0 10px;
    }

    .security-features {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .welcome-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .page-banner-login h1 {
        font-size: 1.7rem;
    }

    .login-container {
        padding: 25px 20px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header Navigation Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover {
    color: #ffd700;
    transform: translateY(-1px);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.user-avatar i {
    font-size: 1.1rem;
    color: #ffffff;
}

.user-info span {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .user-info span {
        display: none;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
    }
}