* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.image-section {
  width: 50%;
  height: auto;
  max-height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-section {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-section img {
    width: 350px;
    margin-bottom: 10px;
}

.form-section h2 {
    font-size: 22px;
    color: #333;
    font-weight: bold;
}

.form-section p {
    font-size: 16px;
    color: #69a534;
    margin-bottom: 20px;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.input-group input {
    width: 400px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    background: #69a534;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-submit:hover i {
    animation: headshake 0.5s infinite;
}

@keyframes headshake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.btn-submit:hover {
    background: #5b8e2e;
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 37px;
    cursor: pointer;
    color: #777;
}

.error-message {
    background: #ff4d4d;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
    }

    .image-section {
        width: 100%;
        height: 200px;
    }

    .form-section {
        width: 100%;
        padding: 30px 20px;
    }

    .form-section img {
        width: 200px;
    }

    .input-group input {
        width: 100%;
    }

    .btn-submit {
        width: 100%;
    }

    .password-toggle {
        right: 15px;
    }

    .error-message {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 20px 15px;
    }

    .form-section img {
        width: 160px;
    }

    .btn-submit {
        font-size: 14px;
        padding: 10px;
    }
}