body {
  background-color: #fefbe9;
  color: var(--font-body);
  line-height: var(--line-height-body);
}

.container.center-container {
  height: 70vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 32px;
  box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.03),
    0 12px 16px -4px rgba(16, 24, 40, 0.08);
  margin: 0 auto;
  max-width: 600px;
  margin-bottom: 3.125rem;
  overflow: hidden;
  z-index: 2;

  background-color: white;
  padding: 2rem 1.5rem;
}


h1 {
    font-weight: 700;
    color: var(--dark-green);
}

form {
    display: flex;
    flex-direction: column;
    align-items: end;
    width: 100%;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}


input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    background: #f1f3f7;
    border: 1px solid #f1f3f7;
    border-radius: 50px;
    padding: 0 16px;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--font-body);
    height: 3.25rem;
    transition: border-color 0.3s ease-in;
}

input[type="email"]:hover, input[type="email"]:focus,
input[type="password"]:hover, input[type="password"]:focus,
input[type="text"]:hover, input[type="text"]:focus {
    border-color: var(--campus-green);
}

button {
    font-family: inherit;
}

.svg-overlay {
  position: fixed;         
  inset: 0;                 
  width: 100%;
  height: 100%;
  pointer-events: none;    
  z-index: -1;            
  overflow: hidden;        
}

.svg-overlay svg {
  position: absolute;
  display: block;
  max-width: none;         
}

.svg-overlay svg:not(.bottom) {
  top: -40px;
  right: 0;
}

.svg-overlay svg.bottom {
  left: 0;
  bottom: 0;
}

.success {
    color: var(--campus-green);
    font-weight: 500;
}

.field {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 3.25rem; 
}

.password-wrapper .toggle-password {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    position: absolute;
    right: 1rem;    
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Show only when wrapper has text */
.password-wrapper.has-value .toggle-password {
    opacity: 1;
    pointer-events: auto;
}

/* Eye swap */
.toggle-password .icon-eyeoff { display: none; }
.toggle-password.is-visible .icon-eye { display: none; }
.toggle-password.is-visible .icon-eyeoff { display: inline; }

@media (min-width: 768px) {
    main {
        padding: 3.125rem;
    }
}
