/* Mobile View (screens smaller than 600px) */
body {
    background: linear-gradient(to bottom, #2A1B3D, #1C2526);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 360px;
    margin-bottom: 10px;
}

.back-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
}

.demo-login {
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

.card {
    background: #001d0f;
    border: 1px solid #00A1E4;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

.card p {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.card h1 {
    margin-top: -10px;
    color: white;
    font-size: 28px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -15px;
    width: 130px;
    height: 35px;
    margin-top: 35px;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
    color: white;
}

label {
    font-size: 16px;
}

.required {
    color: #FF0000;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #B0B0B0;
    border-radius: 8px;
    font-size: 16px;
    background: #FFFFFF;
    color: #000000;
    box-sizing: border-box;
}

input:focus {
    border-color: #00A1E4;
    outline: none;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 60%;
    transform: translateY(-50%);
    color: #B0B0B0;
    cursor: pointer;
}

.forget-link {
    display: block;
    text-align: center;
    color: #00A1E4;
    text-decoration: underline;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-button, .verify-button {
    width: 100%;
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.footer {
    text-align: center;
    margin-top: 20px;
}

.footer p {
    color: #ffffff;
}

.footer p a {
    color: #1684c4;
}

.download-button {
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

.disclaimer {
    font-size: 12px;
    text-transform: uppercase;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1C2526;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-sizing: border-box;
}

#verify-now, #resend-otp, #submit-otp {
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
}


.niche {
    margin-top: 35px;
}

@media screen and (max-width: 600px)

{
    body {
        padding: 10px;
        justify-content: flex-start;
    }

    .main-container {
        height: auto;
        padding: 10px;
        justify-content: flex-start;
    }

    .logo {
        width: 100px;
        height: 30px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .logo span {
        font-size: 20px;
    }

    .card {
        max-width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .card h1 {
        font-size: 24px;
        margin-top: -16px;
    }

    .card p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .header {
        display: flex;
        flex-direction: row; /* Changed to row for horizontal alignment */
        justify-content: space-between; /* Distributes space between back-link and demo-login */
        align-items: center; /* Vertically centers the elements */
        max-width: 100%;
    }

    .back-link {
        font-size: 14px;
    }

    .demo-login {
        font-size: 12px;
        padding: 5px 8px;
        /* Removed margin-left to avoid manual positioning */
    }

    .input-group {
        margin-bottom: 12px;
    }

    label {
        font-size: 14px;
    }

    input {
        padding: 8px;
        font-size: 14px;
    }

    .eye-icon {
        right: 15px;
        font-size: 14px;
    }

    .forget-link {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .login-button, .verify-button {
        padding: 12px;
        font-size: 14px;
    }

    .footer {
        margin-top: 15px;
    }

    .footer p {
        font-size: 12px;
    }

    .download-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .disclaimer {
        font-size: 10px;
        padding: 0 10px;
    }

    .modal-content {
        padding: 15px;
        max-width: 90%;
    }

    #verify-now, #resend-otp, #submit-otp {
        padding: 8px 15px;
        font-size: 14px;
    }

    #otp-input {
        padding: 8px;
        font-size: 14px;
    }

    #success-modal p, #otp-modal p {
        font-size: 14px;
    }

    #success-timer, #timer {
        font-size: 14px;
    }

    .close-button {
        font-size: 14px;
    }
}