body {
  background: var(--card-bg);
}

.login-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: float 8s ease-in-out infinite;
}

.login-bg-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--blue);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.login-bg-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--red);
  bottom: -150px;
  right: -100px;
  animation-delay: -3s;
}

.login-bg-shape-3 {
  width: 300px;
  height: 300px;
  background: var(--blue);
  top: 50%;
  right: 10%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #07205A 100%);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.login-brand {
  margin-bottom: 48px;
}

.login-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.login-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 48px;
}

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

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.login-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.login-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
}

.login-feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--card-bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

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

.login-card-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.login-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-error {
  background: var(--red-light);
  border: 1px solid #FECDD3;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 20px;
  text-align: center;
}

.login-domain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font);
  margin-bottom: 24px;
}

.google-btn:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
  background: var(--bg);
  text-decoration: none;
  color: var(--text-primary);
}

.google-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

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

.login-divider span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.login-footer-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }

  .login-left {
    padding: 48px 32px;
    min-height: 320px;
  }

  .login-right {
    width: 100%;
    padding: 48px 24px;
  }

  .login-title {
    font-size: 30px;
  }
}
