/* ------------------------------ */
/* 1. CSS RESET & GLOBAL DEFAULTS */
/* ------------------------------ */

/* Box-sizing: border-box everywhere */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
}

/* Smooth keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

/* Base typography & smoothing */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

/* Media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form elements */
input, button, textarea, select {
  font: inherit;
}

/* Text wrapping */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

/* Root stacking context */
#root, #__next {
  isolation: isolate;
}


:root {
  --color1: #1fc3cc;
  --color2: #136d75;
  --color3: #0b4e54;
}



.image-wrapper {
  position: relative;
  flex: 2;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sign-up-wrapper {
  flex: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sign-up-card {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  width: 100%;
}

.sign-up-topper {
  margin-bottom: 20px;
  margin-left: 120px;
}

.sign-up-footer > p {
  margin-top: 1em;
  margin-left: 120px;
}





.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 40%;
  transform: translateY(-60%);
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: "Josefin Sans", sans-serif;
}

.logo-text {
  font-size: 3em;
  margin: 22px;
}

.logo {
  width: 10%;
  margin: 8px;
}

.img-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5); 
  color: white;
  font-size: 0.9em;
  padding: 0.5em;
  font-family: "Josefin Sans", sans-serif;
}

.img-footer > a,
a {
  text-decoration: none;
  color: var(--color1);
}

.sign-up-topper > h1 {
  font-family: "Josefin Sans", sans-serif;
}

.form-row {
  margin-bottom: 40px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
}

.form-row label {
  margin-bottom: 15px;
}

.form-row input[type='text'],
.form-row input[type='email'],
.form-row input[type="tel"],
.form-row input[type="password"] {
  background-color: #FFFFFF;
  border: 1px solid #D6D9DC;
  border-radius: 3px;
  width: 100%;
  padding: 7px;
  font-size: 14px;
}

.form-row input[type='text']:invalid,
.form-row input[type='email']:invalid,
.form-row input[type="tel"]:invalid,
.form-row input[type="password"]:invalid {
  border: 1px solid #D55C5F;
  color: #D55C5F;
  box-shadow: none;
}

.form-row input[type="password"]:placeholder-shown {
  border: 1px solid #D55C5F;
  color: #D55C5F;
  box-shadow: none;
}

.form-row input:focus {
  border: 1px solid #2563eb; 
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
  outline: none; 
}

/* Buttons */
button {
  font-size: 16px;
  font-weight: bold;
  color: #FFFFFF;
  background-color: var(--color1);
  border: none;
  border-radius: 3px;
  padding: 10px 40px;
  cursor: pointer;
}

button:hover {
  background-color: var(--color2);
}

button:active {
  background-color: var(--color3);
}



@media only screen and (min-width: 700px) {
  .form-row {
    flex-direction: row;
    align-items: flex-start;
    margin: 20px 0;
  }

  .form-row input[type='text'],
  .form-row input[type="tel"],
  .form-row input[type='email'],
  .form-row input[type="password"] {
    width: 250px;
    height: initial;
  }

  .form-row label {
    text-align: right;
    width: 200px;
    margin-top: 7px;
    padding-right: 20px;
  }

  button {
    margin-left: 120px;
  }
}
