* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff9f1;
  color: #1C1C1E;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  padding: 20px;
  width: 100%;
  max-width: 420px;
}

.login-box {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-box h2 {
  color: #e63946;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: #444;
}

input[type="email"],
input[type="password"] {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #e63946;
  outline: none;
}

button[type="submit"] {
  background-color: #e63946;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
  background-color: #cf2f3b;
  transform: translateY(-2px);
}

.small-text {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.small-text a {
  color: #e63946;
  font-weight: 600;
  text-decoration: none;
}

.small-text a:hover {
  text-decoration: underline;
}

.feedback {
  text-align: center;
  font-size: 14px;
  color: #e63946;
  min-height: 20px;
}

.back-home {
  text-align: center;
  margin-top: 10px;
}

.back-home a {
  text-decoration: none;
  font-size: 14px;
  color: #1C1C1E;
  transition: color 0.2s;
}

.back-home a:hover {
  color: #e63946;
}

.form-wrapper {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: all;
  position: relative;
}


.feedback {
  text-align: center;
  font-size: 14px;
  color: #e63946;
  min-height: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feedback.visible {
  height: auto;
  margin-top: 10px;
}

.social-login {
  text-align: center;
  margin-top: 24px;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.social-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-buttons button:hover {
  background: #f3f3f3;
}

.google-btn img,
.apple-btn img,
.facebook-btn img {
  width: 18px;
  height: 18px;
}

