* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=80&w=2071') center/cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.90) 0%, rgba(4, 120, 87, 0.92) 50%, rgba(6, 95, 70, 0.90) 100%);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(5, 150, 105, 0.5), 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.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 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.logo {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo::before {
    content: '🏛️';
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.tagline::after {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    width: fit-content;
    margin: 12px auto 0;
}

.login-form {
    padding: 30px;
    background: #f0fdf4;
}

.form-title {
    font-size: 24px;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: #059669;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1fae5;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: white;
}

input:focus {
    outline: none;
    border-color: #059669;
    background: white;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    transform: translateY(-1px);
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.5s;
    display: none;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.5);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.footer-note {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: #6b7280;
}

.default-credentials {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px;
    padding: 18px;
    margin-top: 28px;
    border: 2px solid #a7f3d0;
}

.default-credentials p {
    font-size: 13px;
    color: #065f46;
    margin-bottom: 8px;
}

.default-credentials p:last-child {
    margin-bottom: 0;
}

.default-credentials strong {
    color: #047857;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .login-header {
        padding: 35px 25px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .logo::before {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 13px;
    }
    
    .login-form {
        padding: 25px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    input {
        padding: 12px 14px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}

@media (min-width: 641px) {
    .login-header {
        padding: 40px 35px;
    }
    
    .logo {
        font-size: 44px;
    }
    
    .logo::before {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 15px;
    }
    
    .login-form {
        padding: 35px;
    }
    
    .form-title {
        font-size: 26px;
    }
}