/**
 * Authentication Page Styles
 * Split-panel layout for login and signup pages
 */

/* Main Layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background-color: var(--color-background);
}

/* Visual Panel (Left Side) */
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  overflow: hidden;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  text-align: center;
  color: var(--color-text);
}

.auth-logo {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto var(--spacing-lg);
  filter: brightness(0) invert(1);
}

.auth-visual h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--spacing-lg);
  color: white;
}

.auth-visual p {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
}

.auth-visual-tagline {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--font-weight-normal);
}

/* Decorative Shapes */
.auth-decorative {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.auth-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.auth-shape-1 {
  width: 320px;
  height: 320px;
  background: white;
  top: -80px;
  right: -80px;
}

.auth-shape-2 {
  width: 240px;
  height: 240px;
  background: var(--color-pink);
  bottom: -60px;
  left: -60px;
}

.auth-shape-3 {
  width: 180px;
  height: 180px;
  background: white;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

/* Content Panel (Right Side) */
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  background-color: var(--color-surface);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.auth-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  letter-spacing: var(--letter-spacing-tight);
}

.auth-header p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* Form Styling */
.auth-form {
  margin-bottom: var(--spacing-lg);
}

.auth-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.auth-form .btn-full {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

/* Links */
.auth-links {
  text-align: center;
  margin-top: var(--spacing-md);
}

.auth-links p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

.auth-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.auth-links a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.auth-divider {
  margin: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
}

/* Back Link */
.auth-back {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.auth-back a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-back a:hover {
  color: var(--color-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
    padding: var(--spacing-xl);
  }

  .auth-visual h1 {
    font-size: var(--font-size-2xl);
  }

  .auth-visual p {
    font-size: var(--font-size-base);
  }

  .auth-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .auth-header h2 {
    font-size: var(--font-size-2xl);
  }

  .auth-logo {
    height: 80px;
  }

  /* Hide some decorative shapes on mobile for cleaner look */
  .auth-shape-3 {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-logo {
    height: 64px;
  }

  .auth-visual {
    min-height: 220px;
    padding: var(--spacing-lg);
  }

  .auth-content {
    padding: var(--spacing-lg);
  }

  .auth-header {
    margin-bottom: var(--spacing-lg);
  }

  .auth-header h2 {
    font-size: var(--font-size-xl);
  }
}