/* Global Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "Addis Abeba";
    src: url("addis_abeba_unicode.ttf") format("truetype");
}
body {
    background-color: #f0f0f0;
    overflow: hidden;
    font-family: "Addis Abeba", sans-serif;

    /* display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0; */
}
.signup {
    position: relative;
}
#forgotPasswordLink {
    position:relative;
    right: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    color: #3C1012; 
   font-size: 13px;

 
      
}
/* Wave Background */
.wave {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url('img/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo container */
.img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-left: 25%;


}

.img img {
    width: 60%;
    /* Make the image fit nicely inside the circle */
    height: auto;
    /* Keep the aspect ratio */
}

/* Hover effect for the logo */
.logo:hover {
    transform: scale(1.05);
    /* Slight enlargement on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 60px;
        /* Even smaller logo for mobile */
        height: 60px;
        align-items: center;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* max-width: 500px; */
    padding: 4rem;
    margin-left: 30%;
    margin-top: 5%;
    height: 100%;
}

.header {
    display: left;
    align-items: left;
    padding: 10px 20px;
    background-color: var(--white);
}


.form {
    display: inline-block;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Adjusted for smaller screens */
    max-width: 350px;
    padding: 1.5rem;
    margin-right: 40%;
    margin-top: -2rem;
    border-radius: 1rem;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    /* gap: 1em; */
}

.form:hover {
    transform: scale(1.02);
}

#languageSwitcher {
    position: fixed;
    top: 15px;
    right: 15px;
    /* Moves the language switcher to the right side */
    font-size: 1rem;
    padding: 8px;
    z-index: 1000;
    background-color: var(--white);
    color: #3C1012;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-family:"Addis Abeba", sans-serif;
}

@media (max-width: 768px) {
    #languageSwitcher {
        top: 10px;
        /* Slightly closer to the top */
        right: 10px;
        /* Adjust position for smaller screen */
        font-size: 0.9rem;
        /* Slightly smaller text */
        padding: 6px;
        /* Reduce padding for compactness */
    }
}

/* Styles for mobile devices */
@media (max-width: 480px) {
    #languageSwitcher {
        top: 8px;
        /* Position closer to the top */
        right: 4%;
        /* Adjust to fit mobile screen */
        font-size: 0.8rem;
        /* Smaller text for compact layout */
        padding: 4px;
        /* Minimal padding for small screens */
        border-radius: 2px;
        /* Slightly rounded for a compact look */
    }
}

/* Header and Title */
header {
    font-size: 1.9rem;
    /* Reduced font size for smaller form */
    margin-bottom: 2rem;
    color: #3C1012;
    text-align: center;
}

.title {
    font-size: 2rem;
    /* Reduced font size */
    color: #3C1012;
    /* margin: 15px 0; */
}

/* Input Styling */
input[type="text"],
input[type="tel"],
input[type="name"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #d9d9d9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: #B37E10;
    box-shadow: #3C1012;
}

.forgot-password {
    color: #B37E10;
    text-align: right;
    font-size: 0.9em;
}

/* Button Styling */
.button {
    width: 100%;
    height: 45px;
    /* Slightly reduced button height */
    border-radius: 25px;
    border: none;
    background-image: linear-gradient(to right, #3C1012, #3C1012);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-position 0.5s, transform 0.3s;
}

.button:hover {
    background-position: right;
    transform: translateY(-2px);
}

.alternate-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
}

.social-login {
    flex: 1;
    padding: 10px;
    margin: 5px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
}

.google {
    background-color: #B37E10;
    color: #fff;
}

.phone {
    background-color: #B37E10;
    color: #fff;
}

/* Signup Link */
.signup {
    margin-top: 15px;
    text-align: center;

}

.signup a {
    color: #B37E10;
    text-decoration: none;
}

.signup a:hover {
    text-decoration: underline;
}

.signup span {
    font-size: 0.9rem;
}

.signup label {
    color: #3C1012;
    cursor: pointer;
    text-decoration: underline;
}

/* Message Div */
.messageDiv {
    color: rgb(221, 213, 213);
    margin: 10px 0;
    display: none;
}

/* Phone Input */
.phone-input,
.name-input {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.country-code {
    background-color: #d9d9d9;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    border: 2px solid #d9d9d9;
    font-size: 1rem;
}

/* Media Queries */
@media (max-width: 1300px) {
    .wave {
        height: 100%;
       width:100%;
    }

    .container {
     
        padding: 3rem;
    }
    .img{
        margin-left: 30%;
    }
}

@media (max-width: 900px) {
    .container {
        /* padding: 10%; */
        width: 100%;
        margin-left: 0% 0% 0% 20%;

        justify-content: center;
    }

    .wave {
        height: 100%;
        width: 100%;
        /* Show only part of the background */
        background-size: cover;
        /* Adjust size to fit width */
        background-position: 30%;
        /* Position to show upper part of image */
        display: block;
    }

    .form {
        width: 90%;
        margin: 5%;
    }

    .img {
        display: flex;
        margin-left: 30%;
    }

    header {
        font-size: 1.6rem;
    }

}

@media (max-width: 768px) {
    .wave {
        height: 100vh;
        /* Ensure wave covers full height */
    }

    .container {
        width: 70%;
        padding: 0.5rem;
        margin: 0% 8% 0% 0%;
    }

    .form {
        width: 90%;
    }

    .wave {
        background-position: top;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .wave {
        height: 100%;
        width: 100%;
        background-size: cover;
        background-position: center;
        display: block;
    }

    .form {
        width: 100%;
        display: inline-block;
        padding: 1rem;
        box-shadow: none;
        border: 1px solid #d9d9d9;
        /* margin-right: 65%; */
        justify-content: center;
    }

    .container {
        width: 90%;
        height: 80%;
        margin: 10% 0% 0% 0%;

        display: inline-block;
        padding: 1.5rem;


    }

    .button {
        font-size: 1rem;
        height: 40px;
    }

    input {
        font-size: 0.9rem;
        padding: 8px;
    }

    p {
        font-size: 14px;
        margin: 5%;
    }
    .img {
      
        margin-left: 30%;
    }
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.flex-row>div>label {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.span {
    font-size: 14px;
    margin-left: 5px;
    color: #B37E10;
    font-weight: 500;
    cursor: pointer;
}

.button-submit {
    margin: 20px 0 10px 0;
    background-color: #151717;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
}

p {
    text-align: center;
    color: black;
    font-size: 14px;
    margin: 5px 0;
}

.btn {
    margin-top: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 10px;
    border: 1px solid #ededef;
    background-color: white;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    padding: 1rem;
}


.btn:hover {
    border: 1px solid #B37E10;
    ;
}

.hidden {
    display: none;
}


/* Loader Styles */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999; /* Ensure it's on top of all other elements */
}

/* Loader style */
.loader {
    border: 16px solid #B37E10;
    border-top: 16px solid #3C1012;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile devices (up to 576px width) */
@media (max-width: 576px) {
    .loader {
        width: 80px;
        height: 80px;
        border-width: 8px;
    }
}

/* Tablets (between 576px and 768px width) */
@media (min-width: 576px) and (max-width: 768px) {
    .loader {
        width: 100px;
        height: 100px;
        border-width: 10px;
    }
}

/* Desktop (768px and above) */
@media (min-width: 768px) {
    .loader {
        width: 120px;
        height: 120px;
        border-width: 12px;
    }
}
.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
  }
  
  .success {
    color: #3C1012;
    background-color: #d4edda;
    border-color: #c3e6cb;
  }
  
  .message {
    position: relative;
    z-index: 1000;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
  }