/**
 * AUTOMOTO.AI - Login Page Styles
 */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-3xl);
}

.hero-content {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: rgba(30, 32, 36, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.light-theme .login-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.login-icon .material-symbols-rounded {
  font-size: 36px;
  color: #0e1117;
}

.light-theme .login-icon .material-symbols-rounded {
  color: #ffffff;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--md-sys-color-on-surface);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
}

.form-input::placeholder {
  color: var(--md-sys-color-outline);
}

.turnstile-container {
  margin-bottom: var(--space-md);
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-actions {
  margin-top: var(--space-lg);
}

.form-actions .btn {
  width: 100%;
}

.form-links {
  text-align: center;
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-link {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

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

.toast {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

.toast-error {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
  from { transform: translateY(20px); }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(70px + var(--space-lg)) var(--space-md) var(--space-lg);
  }

  .login-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg, 24px);
  }
}
