/* Modern Auth Pages Styling */
:root {
  --primary-color: #845ec2;
  --primary-dark: #6b44a8;
  --primary-light: #9b7dd4;
  --secondary-color: #d65db1;
  --success-color: #00c9a7;
  --warning-color: #ffc75f;
  --danger-color: #ff6f91;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  min-height: 600px;
}

/* Left Panel - Branding */
.left-panel {
  flex: 1;
  background: var(--primary-color);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: subtle-rotate 30s linear infinite;
}

@keyframes subtle-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-logo {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.brand-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.brand-subtitle {
  font-size: 17px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

.features-list {
  margin-top: 48px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
  opacity: 0.95;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Right Panel - Form */
.right-panel {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 40px;
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.form-subtitle {
  color: var(--text-light);
  font-size: 16px;
}

.form-subtitle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.form-subtitle a:hover {
  color: var(--primary-dark);
}

/* OAuth Section */
.oauth-section {
  margin-bottom: 30px;
}

.google-btn {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.google-btn:hover {
  background: var(--bg-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.google-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  background: white;
  padding: 0 15px;
  color: var(--text-light);
  font-size: 14px;
  position: relative;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input.error {
  border-color: var(--danger-color);
}

.form-input.success {
  border-color: var(--success-color);
}

.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 18px;
}

.error-message {
  color: var(--danger-color);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
  display: none;
}

.password-strength.show {
  display: block;
}

.strength-meter {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.strength-bar.weak {
  width: 33%;
  background: var(--danger-color);
}

.strength-bar.medium {
  width: 66%;
  background: var(--warning-color);
}

.strength-bar.strong {
  width: 100%;
  background: var(--success-color);
}

.strength-text {
  font-size: 12px;
  color: var(--text-light);
}

.strength-text.weak {
  color: var(--danger-color);
}

.strength-text.medium {
  color: var(--warning-color);
}

.strength-text.strong {
  color: var(--success-color);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  margin: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
}

.checkbox-label {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1;
  margin: 0;
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(132, 94, 194, 0.25);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.alert-danger {
  background: #fee;
  color: var(--danger-color);
  border: 1px solid #fcc;
}

.alert-success {
  background: #f0fdf4;
  color: var(--success-color);
  border: 1px solid #bbf7d0;
}

.alert-icon {
  margin-right: 10px;
  font-size: 18px;
}

/* Honeypot (hidden) */
.hnpt {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    max-width: 100%;
    margin: 20px;
  }
  
  .left-panel {
    padding: 40px 30px;
    min-height: auto;
  }
  
  .brand-logo {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
  
  .brand-title {
    font-size: 28px;
  }
  
  .brand-subtitle {
    font-size: 16px;
  }
  
  .features-list {
    display: none;
  }
  
  .right-panel {
    padding: 40px 30px;
  }
  
  .form-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }
  
  .container {
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
  }
  
  .left-panel {
    padding: 30px 20px;
  }
  
  .right-panel {
    padding: 30px 20px;
  }
}