/* Modern Login Page Design */
:root {
  --primary-pink: #f50087;
  --primary-pink-light: #ff80ab;
  --primary-pink-dark: #c2185b;
  --bg-dark: #0a0612;
  --bg-card: rgba(35, 37, 58, 0.95);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 128, 171, 0.5);
  --input-bg: rgba(10, 6, 18, 0.6);
  --error-color: #ff6b9d;
  --success-color: #4ade80;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(245, 0, 135, 0.3);
}

body.auth-page {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0612 0%, #1a0f2e 50%, #0a0612 100%);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 0, 135, 0.15) 0%, transparent 70%);
  animation: pulse 20s ease-in-out infinite;
}

.login-container::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 128, 171, 0.1) 0%, transparent 70%);
  animation: pulse 25s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Branding Section */
.login-branding {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow);
}

.brand-text h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 128, 171, 0.3);
  transform: translateX(4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 0, 135, 0.2), rgba(255, 128, 171, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Login Form Section */
.login-form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: slideIn 0.5s ease-out;
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.login-card::-webkit-scrollbar {
  width: 6px;
}

.login-card::-webkit-scrollbar-track {
  background: transparent;
}

.login-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.login-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.login-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(255, 128, 171, 0.1);
  background: rgba(10, 6, 18, 0.8);
}

.input-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary-pink-light);
}

.form-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  padding: 0;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.field-error {
  font-size: 12px;
  color: var(--error-color);
  font-weight: 500;
  margin-top: 2px;
  display: block;
  min-height: 16px;
}

.validation-summary {
  padding: 12px;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 12px;
  color: var(--error-color);
  font-size: 13px;
  margin-bottom: 4px;
}

.validation-summary:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 20px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-pink);
  cursor: pointer;
}

.checkbox-label span {
  font-weight: 500;
}

.forgot-link {
  font-size: 14px;
  color: var(--primary-pink-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--primary-pink);
  text-decoration: underline;
}

/* Buttons */
.btn-login {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.4);
  margin-top: 4px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 0, 135, 0.5);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login svg {
  transition: transform 0.3s ease;
}

.btn-login:hover svg {
  transform: translateX(4px);
}

/* Signup Section */
.signup-section {
  margin-top: 24px;
}

.divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.btn-signup {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-signup:hover {
  border-color: var(--border-focus);
  background: rgba(255, 128, 171, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.2);
}

/* Footer */
.login-footer {
  margin-top: 20px;
  text-align: center;
}

.login-footer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.login-footer a {
  color: var(--primary-pink-light);
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }

  .login-branding {
    display: none;
  }

  .login-form-container {
    padding: 20px;
  }

  .login-card {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 24px;
    border-radius: 20px;
  }

  .login-header h1 {
    font-size: 28px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Light Theme Support */
:root[data-theme="light"] {
  --bg-dark: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.98);
  --text-primary: #1a1a1a;
  --text-secondary: rgba(26, 26, 26, 0.7);
  --text-muted: rgba(26, 26, 26, 0.5);
  --border-color: rgba(0, 0, 0, 0.1);
  --input-bg: rgba(248, 249, 250, 0.8);
}

:root[data-theme="light"] .login-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

:root[data-theme="light"] .login-container::before,
:root[data-theme="light"] .login-container::after {
  background: radial-gradient(circle, rgba(245, 0, 135, 0.08) 0%, transparent 70%);
}

:root[data-theme="light"] .feature-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .feature-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(245, 0, 135, 0.2);
}

:root[data-theme="light"] .login-form-container {
  background: rgba(255, 255, 255, 0.5);
}

:root[data-theme="light"] .input-wrapper {
  background: var(--input-bg);
  border-color: var(--border-color);
}

:root[data-theme="light"] .input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .form-input {
  color: var(--text-primary);
}

:root[data-theme="light"] .btn-signup {
  border-color: var(--border-color);
}

:root[data-theme="light"] .btn-signup:hover {
  background: rgba(245, 0, 135, 0.05);
}
