/*  Base  */
body {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  background: linear-gradient(135deg, rgb(255, 248, 240), rgb(243, 230, 216));
  color: rgb(74, 52, 40);
  min-height: 100vh;
}

/* Layout  */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: transparent;
  min-height: 100vh;
  padding: 1rem;
}

.auth-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: clamp(0px, 2vw, 0px);
  width: 100%;
  min-width: 320px;
  max-width: 420px;
}

/* Typography  */
h1 {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  font-size: clamp(1.9rem, 2.2vw, 2.2em);
  letter-spacing: 0.5px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 100px;
  text-align: center;
  font-size: clamp(1rem, 1.2vw, 1.1em);
  color: rgb(122, 90, 68);
}

/*  Form*/
.field {
  margin-bottom: 1.3em;
}

.input-group {
  position: relative;
  margin-bottom: 1.6em;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 15px 0.9em 0;
  line-height: 1.1;
  font-size: 0.95em;
  border-radius: 8px;
  border: 1px solid rgb(215, 195, 175);
  background: rgb(255, 250, 244);
  box-sizing: border-box;
}

.floating-text {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  font-size: 0.8em;
  color: rgb(138, 106, 84);
  pointer-events: none;
  transition: all 0.25s ease;
  background: transparent;
}

.input-group input:focus {
  outline: none;
  border-color: rgb(168, 122, 79);
  box-shadow: 0 0 0 2px rgba(168, 122, 79, 0.3);
}

/* Move text up */
.input-group input:focus + .floating-text,
.input-group input:not(:placeholder-shown) + .floating-text {
  top: 1.2em;
  font-size: 0.8em;
  color: rgba(74, 52, 40, 0.5);
}

/*  Button  */
button {
  width: 100%;
  padding: 1.2em 0.8em;
  font-size: 1em;
  border: none;
  background: linear-gradient(180deg, rgb(198, 156, 109), rgb(168, 122, 79));
  color: rgb(255, 255, 255);
  cursor: pointer;
  border-radius: 50px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(168, 122, 79, 0.4);
}

/*  Links  */

.auth-links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.auth-links a {
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.link-muted {
  color: rgb(139, 90, 60);
  opacity: 0.7;
}

.link-muted:hover {
  opacity: 1;
  text-decoration: underline;
}

.link-accent {
  color: rgb(139, 90, 60);
  font-weight: 600;
}

.link-accent:hover {
  text-decoration: underline;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: rgb(139, 106, 74);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}


/* Error */
.error {
  background: rgb(255, 234, 234);
  color: rgb(185, 74, 74);
  border-radius: 8px;
  font-size: 0.9em;
  margin: 0 0 0.4em 0.4em;
  text-align: center;
}

.success {
  background: rgb(234, 247, 238);
  color: rgb(47, 122, 69);
  border-radius: 8px;
  font-size: 0.9em;
  margin: 0 0 0.4em 0.4em;
  text-align: center;
}

.clean-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.clean-link:visited {
    color: inherit;
}

.clean-link:hover {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 480px) {
  .auth-card {
    width: 100%;
  }

  .subtitle {
    margin-bottom: 60px;
  }
}
