/* Authentication Pages Styles */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --text: #1a1d2e;
  --text-2: #3b3f54;
  --muted: #8a8fa3;
  --line: #eef0f5;
  --line-2: #e3e6ee;
  --accent: #2d8cf0;
  --accent-soft: rgba(45,140,240,0.10);
  --green: #10b981;
  --green-soft: rgba(16,185,129,0.10);
  --red: #ef4444;
  --red-soft: rgba(239,68,68,0.10);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,30,60,0.05), 0 4px 14px -8px rgba(20,30,60,0.10);
  --shadow-lg: 0 20px 60px -28px rgba(20,30,60,0.22);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.auth-card > * {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 24px;
}

.auth-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

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

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.alert.error {
  background: var(--red-soft);
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.alert.success {
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert i {
  font-size: 16px;
}

.auth-form {
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}

.input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.toggle-password {
  position: absolute;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.toggle-password:hover {
  background: var(--bg);
  color: var(--text);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
}

.checkbox input {
  cursor: pointer;
}

.link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover {
  color: #1e6fd6;
}

.btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1e6fd6;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}

.btn-outline:hover {
  background: var(--bg);
  border-color: var(--line);
}

.btn.full-width {
  width: 100%;
}

.auth-footer {
  text-align: center;
}

.auth-footer p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--line);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.auth-info {
  background: linear-gradient(135deg, #2d8cf0 0%, #1e6fd6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.info-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.info-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.info-content p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.feature i {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-info {
    display: none;
  }
  
  .auth-card {
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 24px 20px;
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
