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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#mon_form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2 i {
    color: #4299e1;
    font-size: 1.6rem;
}

label {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

label i {
    color: #4299e1;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    transition: color 0.3s ease;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background-color: #f8fafc;
}

input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    background-color: white;
}

input:focus + .input-icon {
    color: #4299e1;
}

button {
    background: #4299e1;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    transition: all 0.3s ease;
}

.error-message i {
    color: #e53e3e;
}

.error-message.visible {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.error:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.email-input-container {
    position: relative;
    width: 100%;
}

.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.email-suggestion {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
}

.email-suggestion:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.email-suggestion.selected {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.password-strength {
    height: 4px;
    background-color: #edf2f7;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.weak {
    width: 33.33%;
    background-color: #f56565;
}

.strength-bar.medium {
    width: 66.66%;
    background-color: #ecc94b;
}

.strength-bar.strong {
    width: 100%;
    background-color: #48bb78;
}
