:root {
  --bg-primary: #F4F6FA;
  --bg-secondary: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: rgba(228, 4, 67, 0.4);
  --accent: #E40443;
  --accent-glow: rgba(228, 4, 67, 0.08);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent-gradient: linear-gradient(135deg, #e40443 0%, #ff4f7f 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Background floating orbs */
.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: #E40443;
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: #FF4F7F;
  bottom: -100px;
  right: -100px;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}

/* Glassmorphic Auth Card */
.auth-wrapper {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  z-index: 10;
}

.auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  transition: all 0.3s ease;
}

/* Header & Logo */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  height: 36px;
  margin-bottom: 12px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Tab Selectors */
.auth-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.05);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--bg-secondary);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--border-focus);
  background: #ffffff;
}

.form-input.has-icon {
  padding-right: 44px;
}

/* Password Toggle Icon */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--accent);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(228, 4, 67, 0.2);
}

.submit-btn:hover {
  opacity: 0.95;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Alert Notification Panel */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  line-height: 1.4;
}

.alert-box.error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  display: block;
}

.alert-box.success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #047857;
  display: block;
}

/* Back Link */
.back-link-container {
  text-align: center;
  margin-top: 24px;
}

.back-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover {
  color: var(--accent);
}
