body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    animation: backgroundFade 3s ease-in-out infinite alternate;
}

.outer-container {
    border: 10px solid #4caf50;
    border-radius: 15px;
    padding: 20px;
    animation: pulse 1.5s infinite, frameBounce 2s ease-in-out infinite;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    animation: fadeIn 1s ease-in-out, float 4s ease-in-out infinite;
    width: 350px;
}

.register-wide { width: 550px; }

.logo { display: flex; justify-content: center; margin-bottom: 20px; }

.logo img {
    border-radius: 50%;
    border: 5px solid #4caf50;
    animation: spin 3s linear infinite;
    width: 120px;
    height: 120px;
}

h2 { color: #4caf50; text-align: center; margin-bottom: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.icon {
    margin-right: 10px;
    font-size: 18px;
    color: #4caf50;
    width: 25px;
    text-align: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #4caf50;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 10px;
    padding-right: 35px; /* Space for the eye icon */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-wrapper { display: flex; justify-content: center; }

button {
    width: 40%;
    padding: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    animation: buttonPulse 2s infinite;
}

.toggle-link { text-align: center; margin-top: 20px; font-size: 0.9em; }
.toggle-link a { color: #4caf50; text-decoration: none; font-weight: bold; }

@media (max-width: 600px) {
    .register-wide { width: 90%; }
    .form-row { grid-template-columns: 1fr; }
}

@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes buttonPulse { 0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); } }
@keyframes backgroundFade { from { background-color: #e8f5e9; } to { background-color: #f0f0f0; } }