/* assets/css/login.css */

.auth-page {
  min-height: 100vh;
  padding: 140px 5% 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 69, 19, 0.09), transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(212, 175, 55, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  padding: 2.2rem 2.2rem 2rem;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.06), rgba(212, 175, 55, 0.05));
  pointer-events: none;
  opacity: .9;
}

.auth-card>* {
  position: relative;
}

.auth-card__top {
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--black);
  font-weight: 400;
}

.auth-subtitle {
  margin-top: .4rem;
  color: rgba(0, 0, 0, 0.65);
  letter-spacing: .5px;
  font-size: .95rem;
}

.auth-alert {
  background: rgba(139, 69, 19, 0.07);
  border: 1px solid rgba(139, 69, 19, 0.15);
  padding: .9rem 1rem;
  margin: 1rem 0 1.2rem;
  color: #5a2a0f;
}

.auth-form {
  display: grid;
  gap: 1.05rem;
}

.auth-field {
  display: grid;
  gap: .5rem;
}

.auth-label {
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75);
}

.auth-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: .95rem 1rem;
  outline: none;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  background: #fff;
  transition: all .2s ease;
}

.auth-input:focus {
  border-color: var(--copper);
  box-shadow: 0 12px 25px rgba(139, 69, 19, 0.12);
}

.auth-password {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.auth-eye {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--black);
}

.auth-eye:hover {
  border-color: var(--copper);
  color: var(--copper);
  box-shadow: 0 10px 20px rgba(139, 69, 19, 0.10);
}

.auth-eye .icon-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.auth-hint {
  min-height: 16px;
  font-size: .85rem;
  color: rgba(139, 69, 19, 0.95);
}

.auth-btn {
  margin-top: .3rem;
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  background: var(--copper);
  color: #fff;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(139, 69, 19, 0.22);
}

.auth-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin .8s linear infinite;
}

.auth-btn.is-loading .auth-btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.auth-bottom {
  margin-top: .6rem;
  color: rgba(0, 0, 0, 0.68);
  text-align: center;
}

@media (max-width:768px) {
  .auth-page {
    padding: 120px 4% 60px;
  }

  .auth-card {
    padding: 1.6rem 1.3rem 1.5rem;
  }

  .auth-title {
    font-size: 1.7rem;
  }
}
