@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&family=Inter:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0f1722;
  --bg-accent: #22323f;
  --bg-highlight: #6fc3c9;
  --text-color: #e6eef6;
    /* Light theme palette */
  --green-light: #c8e6c9;
  --rose-light:  #fddede;
  --pink-light:  #ee9494;
  --border-light: rgba(225, 160, 64, 0.377);
  --gray-light: #444;
  /* Dark theme palette */
  --green-dark: #4b6d4c;
  --rose-dark:  #7a5a5a;
  --pink-dark:  #7d3d3d;
  --border-dark: #E1A140;
  --gray-dark: #ccc;
}

body {
    --bg-primary: #532200;
    --bg-accent: #914110;
    --bg-highlight: #E1A140;
    --text-color: #e6eef6;
    --green: var(--green-dark);
    --rose:  var(--rose-dark);
    --pink:  var(--pink-dark);
    --border: var(--border-dark);
    --gray: var(--gray-dark);
}

body {
    font-family: "Raleway", sans-serif;
    letter-spacing: 0.1px;
    line-height: normal;
    color: #F3F1EB;
    height: 100vh;
    background: linear-gradient(120deg, var(--bg-primary) 0%, var(--bg-accent) 40%, var(--bg-highlight) 60%, var(--bg-primary) 100%);
    background-size: 300% 300%;
    padding-top: 30px;
}

.logo-wrapper {
    text-align: center;
    margin: 30px auto 50px auto;
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.auth-container {
  backdrop-filter: blur(10px);
  background: #532200;
  /* border: 1px solid #E1A140; */
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 0 5px #E1A140;
  margin-top: 4%;
}

@media screen and (max-width: 480px) {
  body .auth-container {
    padding: 1.6rem 1.5rem;
  }

  body .tab-btn {
    font-size: 15px;
  }
}

.auth-card {
  width: 100%;
}

.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #F3F1EB;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  font-family: "Raleway", sans-serif;
  letter-spacing: 1px;
  font-size: 18px;
}

.tab-btn.active {
  color: #E1A140;
  border-bottom: 2px solid #E1A140;
}

.form {
  display: none;
  flex-direction: column;
}

.form.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  text-align: center;
  font-family: "Raleway", sans-serif;
  color: #F3F1EB;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.9rem;
  color: #F3F1EB;
  margin-bottom: 0.4rem;
}

input {
  background: #e7d0a9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.2rem;
  color: #532200;
  transition: all 0.3s;
  /* background-color: #F3F1EB; */
}

input:focus {
  border-color: #E1A140;
  outline: none;
  box-shadow: 0 0 4px #E1A140;
}

input::placeholder {
    color: #979694;
}

.action-btn {
  /* background: linear-gradient(90deg, #E1A140, #914110); */
  background-color: #E1A140;
  border: none;
  border-radius: 6px;
  padding: 0.7rem;
  color: #532200;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  font-size: 16px;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 4px #E1A140;
}

.error-message {
    background: var(--rose-light, #fddede);
    color: #7d3d3d;
    border: 1px solid var(--pink-light, #ee9494);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.success-message {
    background: var(--green-light, #c8e6c9);
    color: #4b6d4c;
    border: 1px solid var(--green-dark, #4b6d4c);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}
