

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 60px); /* Adjust height for header */
}

.form-box {
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 400px;
    max-width: 100%;
    transition: transform 0.2s;
}

.form-box:hover {
    transform: scale(1.02);
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333333;
    font-size: 1.8rem;
}

form {
    display: flex;
    flex-direction: column;
}

.name-fields {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.name-fields input {
    width: 48%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.name-fields input:focus {
    border-color: #4caf50;
    outline: none;
}

.email-otp {
    position: relative;
    margin-top: 1rem;
}

.email-otp input {
    width: 100%;
    padding: 0.75rem 4rem 0.75rem 0.75rem; /* Space for the button */
    height: 2.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.email-otp input:focus {
    border-color: #4caf50;
    outline: none;
}

.otp-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none; /* No background */
    color: #4caf50; /* Text color */
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0.5rem; /* Add padding for better click area */
    border: none; /* No border */
}

.otp-button:hover {
    color: #4caf50; /* Maintain text color on hover */
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #45a049; /* Maintain submit button hover effect */
}

p {
    text-align: center;
    margin-top: 1rem;
    color: #333333;
}

p a {
    color: #4caf50;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-box {
        padding: 1.5rem; /* Adjust padding for medium devices */
    }
}

@media (max-width: 768px) {
    .name-fields {
        flex-direction: column;
    }

    .name-fields input {
        width: 100%;
    }

    .email-otp input {
        padding-right: 3.5rem; /* Adjust padding for the button */
    }
}

@media (max-width: 480px) {
    .form-box {
        width: 90%; /* Use more of the screen width on small devices */
    }
    h2 {
        font-size: 1rem; /* Smaller heading size */
    }
}
