/* Centering Container */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Marcellus&display=swap");

* {
    box-sizing: border-box;
}

.phone-input.is-invalid,
.password-container .password-input.is-invalid {
    border: 2px solid #ff0000;
}

.text-danger {
    color: #ff0000;
    font-size: 14px;
    margin-top: 10px;
}

.input-fucus,
.password-container .input-fucus {
    border: 2px solid #d4a017;
}

.iti {
    width: 100%;
}

.error-msg-password {
    color: #ff0000;
    font-size: 14px;
    margin-top: 10px;
}

.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #f8f8f8; */
    margin-top: 100px;
    padding-bottom: 100px;
    font-family: "DM Sans", sans-serif;
}

.register-logo img {
    /* width: 100px !important; */
}

.row {
    display: flex;
    justify-content: space-between;
}

.fpa {
    font-size: 15px;
    color: #676767;
    text-decoration: none;
}

.phone-input.is-invalid {
    border: 2px solid #ff0000;
}

.input-fucus,
.password-container .input-fucus {
    border: 2px solid #d4a017;
}

.error-msg {
    color: #ff0000;
    font-size: 14px;
    margin-top: 10px;
}

.lock {
    height: 20px;
}

/* Form Box */
.form-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    width: 600px;
    text-align: left;
}

/* Logo */

.register-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.register-logo img {
    width: 90px;
    height: 70px;
    margin-bottom: 10px;
}

/* Heading */
.form-box h2 {
    text-align: left;
    font-size: 22px;
    color: #d4a017;
    margin-bottom: 15px;
    font-family: "Marcellus", serif;
}

/* Form Group */
.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.form-group label span {
    color: red;
}

/* Inputs */
.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

/* Phone Number Field */
.phone-input {
    display: flex;
    align-items: center;
    border: 2px solid #e2e3e7;
    border-radius: 5px;
    overflow: hidden;
}

.phone-input span {
    background: #f1f1f1;
    padding: 10px;
    font-size: 14px;
    color: #555;
    border-right: 1px solid #ccc;
}

.phone-input input {
    border: none;
    flex: 1;
    padding: 10px;
    font-size: 14px;
    height: 45px;
}

.phone-input select {
    border: none;
    padding: 5px;
}
/* Password Field */
.password-container .password-input {
    display: flex;
    align-items: center;
    border: 2px solid #e2e3e7;
    border-radius: 5px;
    overflow: hidden;
}

.password-input span {
    padding: 8px;
}

.password-input input {
    border: none;
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* Toggle Password Icon */
.toggle-password {
    cursor: pointer;
    padding: 10px;
}

.submit-btn {
    display: inline-block;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #e8e8e8;
    padding: 0.7em 1.7em;
    cursor: pointer;
    font-size: 18px;
    border-radius: 0.5em;
    background: #d4a017;
    border: 1px solid #e8e8e8;
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
    width: 100%;
}

.submit-btn:active {
    color: #666;
    box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.submit-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.submit-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #009087;
    border-radius: 50%;
    display: block;
    transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.submit-btn:hover {
    color: #ffffff;
    border-color: #009087;
}

.submit-btn:hover::before {
    top: -35%;
    background-color: black;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.submit-btn:hover::after {
    top: -45%;
    background-color: black;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

/* ------ Arrow Animation ------ */
.submit-btn .arrow {
    display: inline-block;
    margin-left: 0.3em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.submit-btn:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Login Link */
.login-link {
    font-size: 14px;
    margin-top: 15px;
}

.login-link a {
    color: #d4a017;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

.logos {
    display: none;
}

.otp-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-input input {
    margin-top: 40px;
    border: 2px solid #ccc;
    width: 80px;
    height: 80px;
    font-size: 50px;
    padding-left: 25px;
}

.resend {
    display: flex;
    justify-content: center;
}

.rember-me {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Hide footer and navbar */
    .footer,
    .navbar {
        display: none;
    }

    .register-logo img {
        display: none;
    }

    /* Make body a flex container to distribute space */
    body {
        background-color: #202125;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100vh; /* Ensure full height of the viewport */
    }

    /* Logo stays at the top with proper spacing */
    .logos {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-top: 15vh; /* Space from the top, adapts to all screens */
        z-index: 10;
    }

    .logo-image {
        width: 140px;
        height: auto;
    }

    /* Container holds both logo and form */
    .container-login {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end; /* Ensures form stays at bottom */
        flex-grow: 1; /* Pushes form to bottom */
        width: 100%;
        padding-bottom: 0;
    }

    /* Adjust form box */
    .form-box {
        width: 100%;
        max-width: 100vw;
        min-height: 65vh; /* Always leaves 35% space for logo */
        background: white;
        padding: 20px;
        box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
        border-radius: 50px 50px 0 0;
        overflow-y: auto;
        box-sizing: border-box;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        /* justify-content: center; */
    }

    /* Make sure form inputs don't exceed the width */
    .form-group input,
    .form-group select {
        /* width: 20%; */
        padding: 10px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* Password input adjustments */
    .password-input {
        display: flex;
        align-items: center;
        position: relative;
    }

    .password-input input {
        flex: 1;
        padding-right: 40px;
        border: none;
    }

    .toggle-password {
        position: absolute;
        right: 10px;
        cursor: pointer;
    }

    .toggle-password img {
        width: 20px;
        height: 20px;
    }

    /* Login link */
    .login-link {
        text-align: center;
        margin-top: 10px;
    }

    .login-link a {
        color: #f5a623;
        text-decoration: none;
    }

    .login-link a:hover {
        text-decoration: underline;
    }

    .otp {
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .otp-input {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }

    .otp-input input {
        margin-top: 40px;
        border: 2px solid #ccc;
        width: 80px;
        height: 80px;
        font-size: 50px;
        padding-left: 25px;
    }

    .resend {
        display: flex;
        justify-content: center;
    }

    #loginForm {
        position: relative;
    }

    .fpa {
        position: absolute;
        right: 0;
        bottom: 115px;
    }

    .submit-btn {
        margin-top: 30px;
    }

    .rember-me {
        display: flex;
        gap: 2px;
        font-family: Dm Sans;
        font-size: 15px;
        font-weight: 500;
    }
    .form-box h2 {
        color: #202125;
    }
}
