*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f5f5f5;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0ffea 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #fff;
    width: 900px;
    margin: 50px auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 600px;
}

.image-side {
    flex: 1;
    background-image: url('login.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 85, 43, 0.3);
}

.form-side {
    flex: 1;
    padding: 2.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container:hover {
    transform: translateY(-5px);
}

form {
    margin: 0 1.5rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    padding: 1.3rem;
    margin-bottom: 1rem;
    color: #166534;
}

.input-group {
    padding: 1.2rem 0;
    position: relative;
    margin-bottom: 0.5rem;
}

.input-group i {
    position: absolute;
    color: #166534;
    top: 1.8rem;
    left: 0;
}

input {
    color: #333;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 0.5rem 0 0.5rem 1.8rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    background-color: transparent;
    outline: none;
    border-bottom: 2px solid #166534;
}

input::placeholder {
    color: transparent;
}

label {
    color: #757575;
    position: absolute;
    left: 1.8rem;
    top: 1.8rem;
    cursor: text;
    transition: 0.3s ease all;
    font-size: 1rem;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: 0.5rem;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn {
    font-size: 1.1rem;
    padding: 12px 0;
    border-radius: 8px;
    outline: none;
    border: none;
    width: 100%;
    background: #166534;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.btn:hover {
    background: #14532d;
    transform: translateY(-2px);
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    color: #757575;
}

button {
    color: #166534;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

button:hover {
    color: #14532d;
    text-decoration: none;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
    }
    
    .form-side {
        padding: 1.5rem;
    }
    
    form {
        margin: 0 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        flex-direction: column;
    }
    
    .image-side {
        height: 200px;
    }
    
    .form-side {
        padding: 1rem;
    }
}