/**
 * @fileoverview Login and Auth Styles (Modern Luxury)
 */

.auth-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--wine-900);
  background-image: radial-gradient(circle at top right, var(--wine-800), var(--wine-900) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.auth-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.auth-box {
  background: var(--bg-surface);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  z-index: 10;
  animation: authFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wine-900);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--wine-900);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-form .form-control {
  padding: 14px 16px;
  font-size: 1rem;
  background: var(--bg-subtle);
  border-color: rgba(201, 169, 110, 0.3);
}

.auth-form .form-control:focus {
  background: var(--bg-surface);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--wine-700) 0%, var(--wine-800) 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-btn:hover {
  background: linear-gradient(135deg, var(--wine-600) 0%, var(--wine-700) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 29, 58, 0.3);
}

.auth-error {
  color: var(--danger);
  background: var(--danger-bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  display: none;
  border: 1px solid rgba(198, 40, 40, 0.2);
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}



/* --- Login Background Watermark Pattern --- */
.auth-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  opacity: 0.08;
  background-image: 
    url('../img/logo-bg.png'),
    url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3e%3ctext x='50%25' y='50%25' font-family='Georgia, serif' font-style='italic' font-size='8' font-weight='bold' fill='%23C9A96E' text-anchor='middle' dominant-baseline='middle' transform='rotate(-25 25 25)'%3eRapsódia%3c/text%3e%3c/svg%3e");
  background-repeat: repeat;
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
  mix-blend-mode: screen;
}
