:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #000000;
  --color-accent-hover: #333333;
  --color-border: #e5e5e5;
  --color-surface: #ffffff;
  --color-error: #e03131;
  
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --space-unit: 8px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Layout */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 100vh;
  width: 100%;
}

@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
}

/* Visual Side */
.login-visual {
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

.visual-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.visual-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.visual-quote {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
  border-left: 2px solid var(--color-accent);
  padding-left: 24px;
}

.visual-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.visual-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  top: -100px;
  right: -100px;
  z-index: 0;
  animation: morph 20s linear infinite alternate;
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; }
}

/* Form Side */
.login-form-section {
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-accent);
  margin-bottom: 48px;
  display: block;
}

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

.form-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-header p {
  color: var(--color-text-muted);
}

/* Form Components */
.form-group {
  margin-bottom: 24px;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: transparent;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

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

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}

.link {
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  margin-top: 16px;
}

.btn-outline:hover {
  background-color: #f8f9fa;
  border-color: var(--color-accent);
}

.divider {
  display: flex;
  align-items: center;
  margin: 32px 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.divider::before { margin-right: 16px; }
.divider::after { margin-left: 16px; }

.social-login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.social-btn:hover {
  background-color: #f8f9fa;
}

.form-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.placeholder-icon {
  width: 20px;
  height: 20px;
  background-color: #eee;
  border-radius: 50%;
}
