* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    background-color: #e4f1ed;
    background-image: linear-gradient(135deg, #e4f1ed 0%, #d7e7e2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.form-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    color: #4f46e5;
    font-size: 28px;
    font-weight: 700;
}

h2 {
    color: #4f46e5;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-container {
    position: relative;
}

input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: #fff;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(79, 70, 229, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-link {
    margin-top: 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-secondary {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #4338ca;
}

/* Responsive styles */
@media (max-width: 480px) {
    .form-container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .description {
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px 16px;
        font-size: 15px;
    }

    .modal-content {
        padding: 25px 15px;
    }
}

/* ===================== ANIMATED DROPDOWN ===================== */
.dropdown-animated {
    position: relative;
    animation: slideFadeIn 0.8s ease-in-out;
}

/* Animation for dropdown fade-in + slide */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dcdcdc;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    appearance: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Hover and Focus Effects */
select:hover {
    border-color: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
    background-color: #f5f4ff;
    transform: scale(1.02);
}

/* Dropdown icon styling */
.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #4f46e5;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Rotate icon slightly on hover */
.dropdown-animated:hover .input-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Smooth entry for label + dropdown */
.fade-in {
    animation: fadeInText 1s ease-in-out;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}