/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.messageDiv {
    background-color: hsl(327, 90%, 28%);
    color: white;
    padding: 10px 15px;
    margin: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeOut 7s forwards;
}

/* Form Wrapper */
.wrapper {
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    padding: 30px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

/* Form Box */
.form-box {
    position: relative;
}

/* Form Container */
.form-container {
    transition: all 0.4s ease-in-out;
}

/* Hidden Forms */
.hidden {
    display: none;
}

/* Cancel Button */
.cancel-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.cancel-btn img {
    width: 25px;
    transition: transform 0.3s;
}

.cancel-btn img:hover {
    transform: rotate(15deg);
}

/* Headings */
h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.sub-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Input Fields */
.input-group {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px 35px;
    border: none;
    border-bottom: 2px solid #757575;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #757575;
    transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 5px;
    font-size: 12px;
    color: #000;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 10px;
    background: #4b7bec;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover {
    background: #3867d6;
}

/* Switch Text */
.switch-text {
    font-size: 14px;
    margin-top: 15px;
}

.switch-text button {
    background: none;
    border: none;
    color: #4b7bec;
    cursor: pointer;
    font-weight: bold;
}

.switch-text button:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .wrapper {
        width: 95%;
        padding: 20px;
    }

    h2 {
        font-size: 20px;
    }

    .input-group input {
        font-size: 14px;
        padding: 10px 30px;
    }

    .btn {
        font-size: 14px;
    }
}
