/* 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;
}

.iti {
    width: 100%;
}

#loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: #ff3d00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: calc(100vh - 200px); Adjust height dynamically */
    /* background-color: #f8f8f8; */
    margin-top: 100px; /*Push below navbar*/
    padding-bottom: 100px; /*Prevent overlapping footer*/
    font-family: "DM Sans", sans-serif;
}

.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: center;
}

/* 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: 1px solid #ccc;
    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;
}

.phone-input select {
    border: none;
    padding: 5px;
}
/* Password Field */
.password-container .password-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    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 Button */
.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: #c69200;
    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;
}

@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 {
        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;
    }

    /* Make sure form inputs don't exceed the width */
    .form-group input,
    .form-group select {
        /* width: 100%; */
        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;
    }

    .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;
    }
}
