/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated Background Icons */
.background-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.icon-float {
    position: absolute;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.25);
    animation: floatDown linear infinite;
}

.icon-float:nth-child(1) {
    left: 5%;
    top: -50%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.icon-float:nth-child(2) {
    left: 15%;
    top: -30%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.icon-float:nth-child(3) {
    left: 25%;
    top: -70%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.icon-float:nth-child(4) {
    left: 35%;
    top: -20%;
    animation-duration: 16s;
    animation-delay: 0s;
}

.icon-float:nth-child(5) {
    left: 45%;
    top: -60%;
    animation-duration: 19s;
    animation-delay: 0s;
}

.icon-float:nth-child(6) {
    left: 55%;
    top: -40%;
    animation-duration: 17s;
    animation-delay: 0s;
}

.icon-float:nth-child(7) {
    left: 65%;
    top: -80%;
    animation-duration: 21s;
    animation-delay: 0s;
}

.icon-float:nth-child(8) {
    left: 75%;
    top: -35%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.icon-float:nth-child(9) {
    left: 85%;
    top: -55%;
    animation-duration: 16s;
    animation-delay: 0s;
}

.icon-float:nth-child(10) {
    left: 10%;
    top: -90%;
    animation-duration: 22s;
    animation-delay: 0s;
}

.icon-float:nth-child(11) {
    left: 20%;
    top: -45%;
    animation-duration: 19s;
    animation-delay: 0s;
}

.icon-float:nth-child(12) {
    left: 40%;
    top: -65%;
    animation-duration: 17s;
    animation-delay: 0s;
}

.icon-float:nth-child(13) {
    left: 60%;
    top: -25%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.icon-float:nth-child(14) {
    left: 80%;
    top: -75%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.icon-float:nth-child(15) {
    left: 90%;
    top: -50%;
    animation-duration: 16s;
    animation-delay: 0s;
}

@keyframes floatDown {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.25;
    }
    95% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(calc(100vh + 200px)) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.logo-image {
    max-width: 180px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}



.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.error-message {
    font-size: 13px;
    color: #dc3545;
    min-height: 18px;
    display: block;
}

#generalError {
    padding: 12px;
    background-color: #fee;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    display: none;
}

#generalError:not(:empty) {
    display: block;
}

.btn-login {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-loader {
    display: inline-block;
}



/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
}

/* Accessibility */
.form-group input:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}
