@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

body{
    background-image: url("pics/coupe1.6e45c56b96c8.jpeg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center; /* Horizontally centers the form */
    align-items: center;    /* Vertically centers the form */
    height: 100vh !important; 
}

.auth-form{
    height: fit-content;
    width: 55vw;
    margin: 20px auto;
    padding: 5vw;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(50px);
}

.auth-form *{
    margin: 15px;
}

.full-name{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 0;
}

.full-name input{
    margin: 0;
}

/*button design from getcssscan.com */
.button-18 {
  align-items: center;
  background-color: #0A66C2;
  border: 0;
  border-radius: 100px;
  box-sizing: border-box;
  color: #ffffff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  max-width: 480px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
}

.button-18:hover,
.button-18:focus { 
  background-color: #16437E;
  color: #ffffff;
}

.button-18:active {
  background: #09223b;
  color: rgb(255, 255, 255, .7);
}

input{
    border-radius: 4px;
    width: 100%;
    background-color: rgb(193, 199, 199);
    padding: 2px;
}

.errorlist{color: rgb(176, 0, 0);}
#id_user_image{display: inline-block;}

/* Media queries for mobile devices */
@media screen and (max-width: 768px) {
    .auth-form {
        width: 90%; /* Adjust width to fit smaller screens */
        margin-top: 10%; /* Adjust margin for better spacing */
        padding: 15px; /* Reduce padding for smaller screens */
    }

    .button-18 {
        width: 100%; /* Make the button take full width */
    }
}

@media screen and (max-width: 480px) {
    .auth-form * {
        margin: 5px; /* Minimize margins for compact layout */
    }

    .auth-form a {
        font-size: 14px; /* Adjust font size for links */
    }

    .button-18 {
        width: 100%; /* Full width for mobile buttons */
        font-size: 16px; /* Adjust button font size */
    }
}