* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* Background image with opacity */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../image/log.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Curved wave overlays */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
}

/* Left side - Logo Section */
.logo-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6rem;
}

.logo-container {
    text-align: center;
}

.main-logo {
    max-width: auto;
    width: 120%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Right side - Form Section */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding-right: 4rem;
}

.login-title {
    text-align: center;
    color: #126E82;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4rem;
    letter-spacing: 0.5px;
    margin-top: -4rem;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #fcc;
    text-align: center;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    background-color: #f9fafbbc;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #126E82;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 110, 130, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #126E82;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.btn-login {
    width: 40%;
    padding: 0.875rem 1.5rem;
    background: #126E82;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    letter-spacing: 0.5px;
    justify-content: center;
    align-items: center;
}

.btn-login:hover {
    background: #0e5a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 110, 130, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-logo {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .logo-section {
        padding: 2rem 1rem;
    }
    
    .main-logo {
        max-width: 250px;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 200px;
    }
    
    .login-box {
        padding: 1.5rem 1.25rem;
    }
    
    .login-title {
        font-size: 1.35rem;
    }
}
