@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Figtree:ital,wght@0,300..900;1,300..900&family=Outfit:wght@100..900&family=Quicksand:wght@300..700&display=swap");

.login-wrapper {
    font-family: "Figtree", sans-serif;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 3px solid red; */
    margin: 50px auto;
}

.login-container {
    font-family: "Figtree", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    max-width: 1280px;
    /* border: 3px solid red; */
    padding: 20px;
  }

.form-section,
.image-section {
    padding: 40px;
    padding-bottom: 0;
    width: 50%;
}
.form-section {
    width: 40%;
}

.form-section {
    padding-top: 0;
}

.form-section {
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 2.25em;
    margin-bottom: 0;
    font-weight: 700;
}

.form-section p {
    color: #666;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    /* border: 3px solid red; */
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -20px;
    left: 10px;
    font-size: 12px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: calc(100% - 140px);
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
}

.form-group .phone-no {
    width: calc(100% - 140px);
    width: 70%;
    max-width: 64%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
}

.send-otp-btn {
    padding: 10px 20px;
    width: 33%;
    font-size: 1.2em;
    border: none;
    border-radius: 50px;
    background-color: #bbb; /* Default background color */
    color: white;
    cursor: not-allowed;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

.send-otp-btn.active {
    cursor: pointer;
    background-color: #4b38f2;
}

.send-otp-btn:disabled {
    background-color: #bbb;
}

.send-otp-btn:hover {
    background-color: #4b38f2;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-boxes input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.otp-boxes input:enabled {
    border-color: #4b38f2;
}

.form-group .btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    color: white;
    background-color: #4b38f2;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

.resend-otp-container {
    /* border: 2px solid red; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.resend-otp-container p {
    text-decoration: none;
    /* border: 2px solid red; */
    margin: auto;
}
.resend-otp-container a {
    text-decoration: none;
    /* border: 2px solid red; */
}

.tnc {
    margin-top: 0;
}

.link {
    color: #4b38f2;
    cursor: pointer;
}

.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 90%;
    margin: 0 10px;
}

.gradient-text {
    font-weight: bold;
    background: linear-gradient(90deg, #f36929 0%, #1393df 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hide the arrows in number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        /* border: 5px solid red; */
        padding: 10px;
    }

    .form-section,
    .image-section {
        width: 70%;
        max-width: 768px;
        padding: 10px;
        margin: auto;
        background-color: #fff;
        /* border: 5px solid red; */
    }

    .form-section h2, .form-section p {
      text-align: center;
    }

    .form-group input[type="email"] {
        width: 100% !important;
        /* border: 3px solid red; */
    }

    .form-group input[type="tel"] {
        width: 55%;
    }

    .send-otp-btn {
        width: 40%;
    }

    .otp-boxes input {
        /* background-color: red; */
        aspect-ratio: 1;
    }

    .form-section {
        padding: 20px;
    }

    .form-group input[type="email"] {
        width: calc(100% - 20px);
    }
}

@media (max-width: 768px) {
    .form-group input[type="tel"],
    .form-group input[type="email"] {
        width: calc(100% - 60px);
    }

    .form-section,
    .image-section {
        width: 75%;
        max-width: 600px;
    }

    .send-otp-btn {
        width: auto;
        width: 33%;
        padding: 10px 10px;
        font-size: 16px;
    }

    .otp-boxes input {
        width: 40px;
        height: 40px;
        aspect-ratio: 1;
    }

    .form-section h2 {
        font-size: 1.75em;
    }

    .form-section p {
        font-size: 0.9em;
    }

    /* .form-group input[type="button"] {
          padding: 10px;
        } */

    .form-group .btn {
        padding: 8px;
        font-size: 16px;
    }

    .timer-otp {
        font-size: 0.9em;
    }

    .form-group input[type="email"] {
        width: calc(100% - 20px);
    }
}

@media (max-width: 576px) {
  .login-wrapper {
    margin: 20px auto;
    margin-bottom: 20px;
  }
    .otp-boxes {
        gap: 5px;
    }

    .otp-boxes input {
        width: 35px;
        height: 35px;
    }

    .form-section {
        padding: 15px;
    }

    .form-group input[type="tel"] {
        /* width: calc(100% - 50px); */
        width: 70% !important;
    }

    .send-otp-btn {
        width: auto;
        padding: 8px 16px;
    }

    .form-section,
    .image-section {
        width: 80%;
        max-width: 600px;
    }

    .form-group input[type="email"] {
        width: calc(100% - 20px);
    }

    .phone-no {
        /* background-color: red; */
        max-width: 50% !important;
    }
    .image-section img {
        /* border: 5px solid red; */
        width: 80%;
        max-width: 120px;
    }
}

@media (max-width: 425px) {
    .send-otp-btn {
        width: auto;
        padding: 8px 18px;
    }

    .form-section,
    .image-section {
        width: 100%;
    }

    .phone-no {
        max-width: 55% !important;
    }
}

@media (max-width: 340px) {
    .send-otp-btn {
        width: auto;
        padding: 8px 18px;
    }

    .form-section,
    .image-section {
        width: 85%;
    }

    .phone-no {
        max-width: 47% !important;
    }
}