/* =========================
   Auth V7 - "Soft Professional" Design System
   ========================= */

:root {
  --cozy-bg: #f8fafc;
  --cozy-text: #334155;
  --cozy-heading: #0f172a;
  --cozy-accent: #3b82f6; /* Soft Royal Blue */
  --cozy-accent-hover: #2563eb;
  --cozy-input-bg: #ffffff;
  --cozy-border: #e2e8f0;
  --cozy-radius: 16px; /* Soft rounding */
}

.dark {
  --cozy-bg: #0f172a;
  --cozy-text: #94a3b8;
  --cozy-heading: #ffffff;
  --cozy-accent: #60a5fa;
  --cozy-accent-hover: #93c5fd;
  --cozy-input-bg: rgba(30, 41, 59, 0.5); /* Subtle dark fill */
  --cozy-border: rgba(255, 255, 255, 0.05);
}

/* 1. Layout */
.cozy-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cozy-bg);
  position: relative;
  overflow: hidden;
  padding: 1rem; /* Reduced padding */
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease;
}

/* Background Ambient Orbs */
.cozy-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--cozy-accent), transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  bottom: -10%;
  left: -5%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #8b5cf6, transparent 70%); /* Violet hint */
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* 2. Content Container */
.cozy-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
}

/* 3. Typography */
.cozy-title {
  font-family: 'PT Serif', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--cozy-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.cozy-subtitle {
  font-size: 1.05rem;
  color: var(--cozy-text);
  margin-bottom: 2rem; /* Reduced from 3rem */
  text-align: center;
  line-height: 1.5;
  font-weight: 400;
}

/* 4. Form Elements */
.cozy-group {
  margin-bottom: 1rem; /* Reduced from 1.25rem */
}

.cozy-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cozy-heading);
  margin-bottom: 0.5rem;
  margin-left: 0.5rem; /* Slight indent to align with input curve */
}

.cozy-input-wrapper {
  position: relative;
}

.cozy-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--cozy-heading);
  background: var(--cozy-input-bg);
  border: 1px solid var(--cozy-border);
  border-radius: var(--cozy-radius); /* Rounded */
  outline: none;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.cozy-input:focus {
  border-color: var(--cozy-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* Soft glow ring */
  background: #fff;
}

.dark .cozy-input:focus {
  background: rgba(30, 41, 59, 0.8);
}

/* Toggle Password Icon */
.cozy-icon-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cozy-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.cozy-icon-btn:hover {
  color: var(--cozy-accent);
}

/* 5. Buttons */
.cozy-btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--cozy-accent);
  border: none;
  border-radius: var(--cozy-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cozy-btn-primary:hover {
  background: var(--cozy-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
}

.cozy-btn-secondary {
  color: var(--cozy-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.cozy-btn-secondary:hover {
  color: var(--cozy-accent);
}

.cozy-btn-link {
  color: var(--cozy-accent);
  font-weight: 600;
  text-decoration: none;
}

.cozy-btn-link:hover {
  text-decoration: underline;
}

/* 6. Info Cards */
.cozy-card {
  background: var(--cozy-input-bg);
  border: 1px solid var(--cozy-border);
  border-radius: var(--cozy-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  margin-top: 1rem;
}

/* 7. Alerts */
.cozy-alert {
  padding: 1rem;
  border-radius: 12px;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.dark .cozy-alert {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Spacers */
.cozy-divider {
  height: 1px;
  background: var(--cozy-border);
  margin: 2rem 0;
  position: relative;
}

.cozy-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cozy-bg);
  padding: 0 1rem;
  color: var(--cozy-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
