* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #81A969;
    background-image: linear-gradient(to bottom right, #81A969, #3F6B3F);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    transition: all 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

.logo {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 30px;
}

h1 {
    font-size: 1.6rem;
    color: #3F6B3F;
    margin-bottom: 5px;
    font-weight: 600;
}

.subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 2px 10px rgba(63, 107, 63, 0.3);
    background-color: #fff;
}

.input-icon {
    width: 50px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3F6B3F;
    font-size: 1rem;
}

.input-field {
    flex: 1;
    height: 48px;
    padding: 0 15px 0 0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
}

.input-field::placeholder {
    color: #adb5bd;
}

.password-toggle {
    width: 50px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #3F6B3F;
}

.login-btn {
    background-color: #3F6B3F;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    background-color: #2E5330;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 83, 48, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(46, 83, 48, 0.4);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

.footer {
    margin-top: 40px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(63, 107, 63, 0.1);
    border-left-color: #3F6B3F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.error-message i {
    font-size: 1.1rem;
}

.hide {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .input-field {
        font-size: 0.9rem;
    }
    
    .login-btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}
