body {
    background-color: var(--black);
    font-family: var(--Regular);
}

.login-container {
    height: 628px;
    width: 595px;
    background-color: var(--white);
    margin-top: 0px!important;
}

@media (max-width: 767.98px) {
  .login-container{
    margin-top: -100px!important;
  }
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 35%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primaryColor);
}

@media (max-width: 768px) {
    .password-toggle-btn {
        top: 45%; 
    }

    .custom-alert{
        width: 70% !important;
    }
}

@media (max-width: 430px) {
    .password-toggle-btn {
        top: 45%; 
    }

    .custom-alert{
        width: 93% !important;
    }
}


/*Border Color*/
.border-blue {
    border-style: solid;
    border-width: 0.5px;
    border-color: var(--black);
    background-color: var(--dirtyWhite);
}

/*Font Color*/
.text-blue {
    color: var(--primaryColor);
}

.btn-login {
    background-color: var(--primaryColor);
    color: var(--white);
    font-size: 22px;
    font-family: var(--SemiBold);
    width: 75% !important;
}

.btn-login:hover {
    background-color: var(--primaryColor) !important;
    color: var(--black) !important;
    border: 1px solid var(--black) !important;
}

.login-form {
    max-width: 75% !important;
}

.highlight:hover {
    transition: ease-in 0.2s;
    color: var(--highlight) !important;
}

.forgot-password {
    font-size: 14px;
    margin-top: 5px;
    font-family: var(--Regular);
}

/*Responsiveness*/
@media screen and (max-height: 900px) {
    .login-container {
        height: 590px;
    }
}

@media screen and (max-width: 767px) {
    .login-container {
        height: 544px;
        width: 506px;
    }
}

@media screen and (max-width: 575px) {
    .login-container {
        height: 474px;
        width: 430px;
    }

    .btn-login {
        font-size: 18px;
    }
}

@media screen and (max-width: 496px) {
    .login-container {
        height: 435px;
        width: 400px;
    }

    .logo {
        width: 265px !important;
    }

    .text-small {
        font-size: 14px;
    }
}

@media screen and (max-width: 430px) {
    .login-container {
        width: 360px;
    }

    .login-form {
        max-width: 100% !important;
    }

    .btn-login {
         width: 360px !important;
    }
}

@media screen and (max-width: 380px) {
    .login-container {
        width: 300px;
    }

    .logo {
        width: 280px!important;
    }
}

.input-style {
    padding-left: 20px !important;
}

/* General alert styles */
.custom-alert {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--Regular);
    font-size: 14px;
    width: 70%;
    margin: 20px auto;   
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-message {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile UI Override (≤768px) ===== */
@media (max-width: 768px) {
    body {
        background-color: #fff5eb;
        font-family: var(--Regular);
    }

    .login-container {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .login-container img.logo {
        width: 180px;
        margin-bottom: 20px;
    }

    .form-control {
        border-radius: 12px !important;
        height: 50px;
        font-size: 15px;
        padding-left: 15px;
    }

    .btn-login {
        background-color: #f5cf86 !important;
        border-radius: 13px !important;
        font-weight: 600;
    }


    .forgot-password {
        font-size: 14px;
        margin-top: 5px;
        font-family: var(--Regular);
    }

    .text-small {
        font-size: 14px;
    }

    .custom-alert {
        width: 93%;
        max-width: none !important;
        border-radius: 13px;
    }
}

/* Hide by default (desktop) */
.mobile-only {
    display: none;
}

/* Show only on mobile (≤768px) */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .logo {
        width: 295px !important;
    }
}