
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

body {
    background: #fff;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.bg1,
.bg2,
.bg3,
.bg4 {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    
}

.bg1 {
    background-image: url('../img/Vector1.png');
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

.bg2 {
    background-image: url('../img/Ellipse\ 47.png');
    top: 70px;
    right: 0;
    width: 120px;
    height: 120px;
}

.bg3 {
    background-image: url('../img/Ellipse\ 46.png');
    bottom: 50px;
    left: 0;
    width: 200px;
    height: 120px;
}

.bg4 {
    background-image: url('../img/Vector2.png');
    bottom: 0;
    right: 0;
    width: 270px;
    height: 300px;
    z-index: -99999;
}

.login-container {
    width: 400px;
    max-width: 90%;
    margin: 0px auto;
    background: #fff;
    padding: 70px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    font-weight: 700;
    color: #3F414E;
    font-size: 26px;
    margin-bottom: 5px;
    letter-spacing: 0;
    line-height: 100%;
}

input::placeholder {
    color: #B9B9B9;
    opacity: 1;
}

input[type="checkbox"] {
    background-color: #F2F3F7 !important;
    cursor: pointer;
}

p {
    font-size: 16px;
    color: #AAAAAA;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 15px;
    color: #83858D;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 14px;
    outline: none;
    background: #F2F3F7;
    border: none;
    color: #323A46;
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.password-label-row label {
    margin: 0;
}

.forgot-password {
    font-size: 14px;
    color: #8E97FD;
    text-decoration: none;
}

.password-wrapper {
    position: relative;
    margin-top: 5px;
}

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.remember-me input {
    width: 16px;
    height: 16px;
}

.remember-me label {
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0px;
}

/* === Button === */
button {
    width: 100%;
    padding: 18px 26px;
    border: none;
    background: #D5D4FF;
    color: white;
    font-size: 14px;
    border-radius: 36px;
    cursor: pointer;
    text-transform: uppercase;
    margin: 20px 0px;
    z-index: 100;
    transition: background 0.3s;
}

button:hover {
    background: #7177C5;
}

button:active {
    background-color: #7177C5;
}

.hidden {
    display: none !important;
}

.error-box {
    background: #FF4C5129;
    color: #3E4959;
    padding: 14px;
    border-radius: 5px;
    border: none;
    text-align: left;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.red {
    color: #FF4C51;
}

.error {
    border: 2px solid #FF4C51 !important;
    color: #FF4C51 !important;
}

/* Success Box Styles */
.success-box {
    display: none;
    background: #28C76F29;
    color: #28C76F;
    padding: 14px;
    border-radius: 5px;
    border: none;
    text-align: left;
    margin-bottom: 10px;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}



.visible {
    display: flex;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px 20px;
    border-radius: 24px;
    text-align: left;
    width: 90%;
    max-width: 350px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-content img {
    width: 80px;
    margin-bottom: 10px;
}

.modal-content h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #4B5768;
    font-weight: 700;
}

.modal-content p {
    font-size: 16px;
    color: #4B5768;
    margin-bottom: 20px;
    font-weight: 400;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.modal-buttons button {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #8E97FD;
    border-radius: 36px;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0px;
    cursor: pointer;
}

.modal-buttons .retry {
    background: white;
    color: #8E97FD;
}

.modal-buttons .continue {
    background: transparent;
    color: #8E97FD;
    border: none;
}



@media (min-width: 768px) {

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }

    .login-container {
        width: 50%;
        border-radius: 0;
        gap: 8px;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .login-container {
        width: 100%;
        border-radius: 0;
        gap: 8px;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}