* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 60px;
    max-height: 60px;
}

.logo-wrapper i {
    font-size: 40px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 13px;
    opacity: 0.9;
}

.login-body {
    padding: 35px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #059669;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
}

.password-toggle:hover {
    color: #059669;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4);
}

.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-danger {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid #2563eb;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid #059669;
    color: #065f46;
}

.alert .close-btn {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
}

.alert .close-btn:hover {
    opacity: 1;
}

.login-footer {
    text-align: center;
    padding: 20px 35px 30px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.login-footer p {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 768px) {
    .login-header {
        padding: 30px 25px;
    }
    .logo-wrapper {
        width: 70px;
        height: 70px;
    }
    .login-header h2 {
        font-size: 22px;
    }
    .login-body {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .login-header {
        padding: 25px 20px;
    }
    .logo-wrapper {
        width: 60px;
        height: 60px;
    }
    .logo-wrapper i {
        font-size: 30px;
    }
    .login-header h2 {
        font-size: 20px;
    }
    .login-body {
        padding: 25px 20px;
    }
    .form-control {
        padding: 12px 12px 12px 42px;
        font-size: 14px;
    }
    .btn-login {
        padding: 12px;
        font-size: 15px;
    }
}