/* css/auth.css */
.auth-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,18,13,0.95), rgba(43,27,19,0.95));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-container{
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(202,161,90,.28);
  border-radius: var(--radius);
  padding: 40px;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.auth-header{
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2{
  font-family: Cinzel, serif;
  color: var(--text);
  margin: 0 0 10px 0;
  font-size: 2rem;
  letter-spacing: .06em;
}

.auth-header p{
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.auth-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label{
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input{
  padding: 12px 16px;
  border: 1px solid rgba(202,161,90,.22);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.72);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus{
  border-color: rgba(59,183,255,.35);
  box-shadow: 0 0 0 3px rgba(59,183,255,.12);
  background: rgba(255,255,255,.85);
}

.auth-button{
  padding: 14px 24px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(202,161,90,1), rgba(183,139,67,1));
  color: #120a06;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.auth-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
  filter: brightness(1.03);
}

.auth-button:active{ transform: translateY(0); }

.auth-button:disabled{
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-toggle{
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-toggle a{
  color: var(--brass);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-toggle a:hover{
  color: var(--brass-2);
  text-decoration: underline;
}

.auth-error{
  background: rgba(198,62,72,0.15);
  border: 1px solid rgba(198,62,72,0.4);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #6a1117;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: none;
}

.auth-error.show{ display: block; }

.auth-success{
  background: rgba(32,160,90,0.15);
  border: 1px solid rgba(32,160,90,0.4);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #0f4f2b;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: none;
}

.auth-success.show{ display: block; }
