*{
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body{
    display: grid;
    place-items: center;
    height: 100vh;
    align-items: center;
}
.container {
    display: flex;
}

.container img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

.bg{
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.image-container{
    display: grid;
    place-items: center;
    width: 40%;
    position: relative;
}
.logo-box {
    background: rgba(0, 0, 0, 0.6);
  padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
  position: absolute;
    top: 50%;
    left: 50%;
}

.logo-box img {
    width: 200px;
    height: auto;
}


.right-panel {
    height: 100vh;
    width: 60%;
     background-color: #fff;
    display: grid;
    place-items: center;
}

.form-container{
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  /* Form outline */
  padding: 20px;
  border-width: 20px;
  border: 1px solid #cccccc;
  border-radius: 5em;
  gap:45px

   
}
fieldset {
    border: none;
    display: contents;
}
form {
    width: auto;
    display: grid;
    place-items: center;
}
.form-group{
    position:relative;
    width: 100% ;
}
legend{
    font-weight: bold;
    font-size: 50px;
    grid-column: 1 / -1;
    letter-spacing: .06em;
    margin-bottom: 30px;
    font-size: 40px;
    color: #0A1C3C;
}
label{
    font-size: 20px;
    font-weight: 800;
}
input {
  border: 2px solid #0A1C3C;
  margin-bottom: 20px;
  padding:5px;
  border-radius: 5px;
  
  
  
}
input:invalid{
    border-color:red;
}
input:valid{
    border-color:green;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  width: 300px;
}

input:focus {
  border: 2px solid green;
  box-shadow: 0 0 5px rgba(0, 102, 255, 0.4);
  outline: none;
}

input::placeholder {
    color: #ccc;
    font-style: italic;
}
#password-error{
    display: block;
    position: absolute;
    margin-top: 5px;
    font-size: 14px;
    left: 0;
}

button {
    background-color: blue;
    color:white;
    border-radius: 10px;
    font-size: 20px;
    align-items: end;
    padding: 10px 20px;
    cursor: pointer;                   ;
    left: 0;
    text-decoration: none;
}
button:hover{
    color:white;
    font-weight: bold;
}

p a{
    text-decoration: none;
    color: blue;
    font-weight: bold;
    font-size: 15px;
    margin-top: 20px;
    padding: 5px;
}

a:hover{
    color: #0A1C3C
}
.eye-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #0A1C3C;
}
footer{
    bottom: 0;
    left:0;
    position: fixed;
    width:100%;
    padding: 5px;
    place-items: center;
    text-align: center;
    color: white;
    font-weight: bold;
    background-color: #994DD2;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    justify-items: center;
    align-items: center;
    height: auto;
    margin-top: 20px; 
}
footer p{
    color: #000;
      font-size: 25px;
}
.icons{
     margin: 10px;
    cursor: pointer;
    padding: 0px;
    font-size: 48px;
    color: black;
}
#linkedin:hover{
    color:blue;
}

#x:hover{
    color:black;
}
#facebook:hover{
    color:blue;
}
#github:hover{
    color:#4078c0 ;
}
#gmail:hover{
    color: red;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .image-container, .right-panel {
        width: 100%;
        height: auto;
    }
    .logo-box {
        position: static;
        transform: none;
        margin: 20px 0;
    }
    .form-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    footer {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }
    legend {
  font-size: clamp(24px, 5vw, 40px);
}

    input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
        width: 100%;
    }
}