@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    
    /* Define a fixed size or use aspect-ratio */
    width: 400px; 
    aspect-ratio: 1 / 1; 
    
    /* Styling to make the box visible */
    background-color: #20202059; 
    color: white;
    padding: 20px;
    box-sizing: border-box; /* Ensures padding doesn't break the square */
    border-radius: 10px;
}

/* Container/Body setup - crucial for the glass effect to be visible */
body {
  background: radial-gradient(circle at top left, #4158D0, #C850C0, #FFCC70);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  font-family: 'Zalando Sans Expanded', sans-serif;
}

/* Targeting all text-based inputs and textareas */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  /* Dimensions & Typography */
  width: 100%;
  max-width: 400px;
  padding: 14px 20px;
  font-size: 16px;
  color: #ffffff;
  box-sizing: border-box; /* Prevents padding from breaking width */
  font-family: 'Zalando Sans Expanded', sans-serif;
  
  /* The Glass Core */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  /* Border & Shape */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  
  /* Shadow & Glow */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  
  /* Smooth Transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  appearance: none; /* Removes default OS styling */
}

/* Placeholder brightness */
::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* Focus State - The "Glow Up" */
input:focus, 
textarea:focus, 
select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 
              0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px); /* Makes it feel "lighter" */
}

/* Specific fix for Textareas */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* Specific fix for Select dropdowns */
select option {
  background: #2a2a2a; /* Options can't be transparent in most browsers */
  color: white;
}

button {
  /* Layout & Text */
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  
  /* Glass Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Border & Shadow */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  
  /* Interaction */
  transition: 0.2s all ease-in-out;
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.05);
}

glass-or {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 25px 0;
  
  /* Text Style */
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 400;
  user-select: none;
  font-family: 'Zalando Sans Expanded', sans-serif;
}

glass-or::before,
glass-or::after {
  content: "";
  flex: 1;
  height: 1px;
  /* Fade-in/out gradient for that "smooth" feel */
  background: linear-gradient(
    to right, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
}

glass-or::before { margin-right: 20px; }
glass-or::after { margin-left: 20px; }