@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background:  #ffffff;
    margin: 0;
}

.regmaincontainer {
   /* margin-top: 5px; */
   width: 100%;
   height: 850px;
   /* border-radius: 5px; */
   display: flex;
   flex-direction: row; 
   gap: 10px; 
   align-items: center; 
   justify-content: center; 
   position: relative;
   background-image: url('/images/elyely.png'); 
   background-size: cover; 
   background-position: center; 
   background-repeat: no-repeat; 
   /* box-shadow: 4px 4px 5px rgba(0, 0.7, 0, 0.5);  */
}

.regmaincontainer::before{
    content: ""; 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 30, 74, 0.604);
    /* border-radius: 10px;  */
    z-index: 1; 
}

.logocont {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 800px; 
    height: auto;
    z-index: 2;
}

.logopicture {
    max-width: 90%; 
    height: auto;
    margin-right: 170px; 
    padding: 0;
}

.logoName {
    max-width: 80%; /* Ensure logo fits within the container */
    height: auto;
    margin: 0 auto 16px; /* Center-align and add some spacing from other elements */
}

.reg-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start; /* Change to flex-start to ensure all elements are at the top */
    align-items: center;
    outline: 1px solid #18274b;
    border-radius: 8px;
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 700px;
    padding: 16px; /* Add padding */
    box-sizing: border-box;
    margin: 0;
    overflow-y: auto; /* Enable vertical scroll if needed */
    box-shadow: 4px 4px 5px rgba(0, 0.7, 0, 0.5); 
    z-index: 2;
}

.formregistercont {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced gap */
    padding: 12px; /* Reduced padding */
    max-width: 90%; /* Reduced max width */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.formregistercont p {
    text-align: center;
    margin: 0 0 8px; /* Reduced margin */
    font-size: 14px; /* Smaller font size */
}

.fname, .lname, .cusmail, .usern, .passw, .confirmpassw, .contactnum, .custaddress, .companyadd, .busnat {
    font-size: 14px; /* Smaller font size */
    font-weight: bold;
    color: #18274b;
    padding-top: 10px; /* Reduced padding */
    margin-top: 10px;
}

.input2 {
    width: 100%; /* Full width */
    height: 36px; /* Reduced height */
    padding: 8px 12px; /* Reduced padding */
    border: 1px solid #18274b;
    border-radius: 6px; /* Slightly smaller radius */
    background-color: #fff;
    box-sizing: border-box;
    margin-top: 4px; /* Reduced margin */
}

.createbtn {
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #1638f3;
    color: white;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
}

.createbtn:hover {
    background-color: #1127a4;
}

/* Two-column form layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

/* Make business nature field take full width */
.form-group.full-width {
    grid-column: span 2;
}

/* Ensure labels and inputs align well */
.form-group {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: bold;
    color: #18274b;
}

/* Input fields styling */
.input2 {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #18274b;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    margin-top: 4px;
}

/* Ensure form is responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .form-group.full-width {
        grid-column: span 1;
    }
    .logocont{
        left: 10%;
    }
    .reg-container{
        margin-right: 5%;
    }
}

@media (max-width: 480px) {
    .regmaincontainer {
        width: 100%;
        max-width: 100vw; /* Ensures it does not exceed the viewport width */
        overflow-x: hidden;
    }
    .reg-container {
        width: 80%;
        height: 78%;
        margin: auto;
        position: absolute;
        top: 59%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .logocont {
        position: absolute;
        top: 10%; /* Moves it above .reg-container */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%; /* Ensures it spans the available width */
        text-align: center; /* Centers inline elements */
    }

    .logopicture {
        max-width: 30%; /* Adjust size for better fit */
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
}
