/* ===== AUTH (в стиле MUI) ===== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 15vh;
}

.auth-card {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
  text-align: center;
  transition: all 0.3s ease;
}

.auth-card h2 {
  margin-bottom: 1.2rem;
  font-size: 1.7rem;
  color: #2c1b0c;
}

.mui-field {
  margin-bottom: 1.2rem;
  text-align: left;
}

.mui-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #4a3b24;
}

.mui-field input {
  width: 95%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d2aa67;
  font-size: 1rem;
  transition: 0.2s;
  font-family: inherit;
}

.mui-field input:focus {
  outline: none;
  border-color: #b6894b;
  box-shadow: 0 0 0 2px rgba(182, 137, 75, 0.2);
}

.password-field {
  position: relative;
}

.password-field .toggle-pass {
  position: absolute;
  right: 12px;
  top: 36px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.password-field .toggle-pass:hover {
  opacity: 1;
}

.mui-btn {
  position: relative;
  /* margin-right: 40px; */
  overflow: hidden;
  background: linear-gradient(120deg, #b6894b, #d2aa67, #b6894b);
  background-size: 200% 200%;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
  animation: goldFlow 3s linear infinite;
  cursor: pointer;
  width: 250px;
  height: 45px;
}

/* Эффект движущегося блика */
.mui-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  transform: skewX(-25deg);
  transition: opacity 0.3s;
}

/* При наведении — плавный подъём и усиление блика */
.mui-btn:hover {
  transform: translateY(-2px);
}

.mui-btn:hover::before {
  animation: shine 1.5s ease-in-out;
  opacity: 1;
}

/* Плавная “живая” смена оттенков */
@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Быстрый проход блика */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}
.switch-text {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.switch-text a {
  color: #b6894b;
  font-weight: 600;
}

.auth-form {
  display: none;
  animation: fadeIn 0.4s ease;
}
.auth-form.active {
  display: block;
}

.auth-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.auth-message.success {
  color: #3a7c3f;
}
.auth-message.error {
  color: #a00;
}

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

.auth-form button:disabled {
  background: #8c7a50;
  color: #f2e6cc;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}
