/* Login page styles - Synced with React design */
:root {
  --font-base: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  font-family: var(--font-base);
}

.login-layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
}

.login-hero {
  position: relative;
  width: 50%;
  background-size: cover;
  background-position: center;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: #fff;
}

@media (min-width: 1024px) {
  .login-hero {
    display: flex;
  }
}

.login-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.login-hero__logo,
.login-hero__content,
.login-hero__cta {
  position: relative;
  z-index: 1;
}

.login-hero__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
}

.login-hero__logo-img {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  display: grid;
  place-items: center;
}

.login-hero__logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-hero__content {
  margin-top: auto;
}

.login-hero__content h2 {
  font-size: 36px;
  line-height: 1.125;
  font-weight: 700;
  margin-bottom: 16px;
}

.login-hero__content p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.login-hero__progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-hero__progress span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  width: 8px;
}

.login-hero__progress span:first-child {
  width: 32px;
  background: #fff;
}

.login-hero__progress span:nth-child(3) {
  background: rgba(255, 255, 255, 0.3);
}

.login-hero__cta {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 8px 24px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.login-hero__cta:hover {
  background: rgba(0, 0, 0, 0.3);
}

.login-card {
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

@media (min-width: 1024px) {
  .login-card {
    width: 50%;
  }
}

.login-card > * {
  width: 100%;
  max-width: 28rem;
}

.login-card__mobile-logo {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-card__mobile-logo span {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.login-card__mobile-logo-img {
  width: 48px;
  height: 48px;
  background: #2563EB;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  place-items: center;
}

.login-card__mobile-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-card__header {
  margin-bottom: 32px;
}

.login-card__header h1 {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.2;
}

.login-card__header p {
  font-size: 16px;
  color: #4B5563;
}

.login-card__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  padding: 0 16px;
  font-size: 16px;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

.login-field--password input {
  padding-right: 48px;
}

.login-field input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
}

.login-field--password .login-field__wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  color: #9CA3AF;
  cursor: pointer;
  line-height: 0;
  transition: color 0.2s ease;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.password-toggle:hover {
  color: #4B5563;
}

.password-toggle__icon {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.password-toggle .password-toggle__icon--show {
  display: block;
  position: static;
}

.password-toggle .password-toggle__icon--hide {
  display: none;
}

.password-toggle.is-active .password-toggle__icon--show {
  display: none;
}

.password-toggle.is-active .password-toggle__icon--hide {
  display: block;
  position: static;
}

.login-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4B5563;
  font-size: 14px;
}

.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: #2563EB;
}

.login-forgot {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.login-forgot:hover {
  color: #1D4ED8;
}

.login-submit {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-submit:hover {
  background: #1F2937;
}

.login-submit.is-loading {
  cursor: not-allowed;
  opacity: 0.85;
}

.login-submit__spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: login-spin 1s linear infinite;
  opacity: 0;
  visibility: hidden;
}

.login-submit.is-loading .login-submit__spinner {
  opacity: 1;
  visibility: visible;
}

.login-card__hint {
  text-align: center;
  font-size: 14px;
  color: #6B7280;
}

.login-card__social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-btn {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: background 0.2s ease;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  background: #F9FAFB;
}

.social-btn--facebook svg {
  fill: #2563eb;
}

.login-card__footer {
  text-align: center;
  font-size: 14px;
  color: #4B5563;
  margin-top: 32px;
}

.login-card__footer a {
  margin-left: 4px;
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

.login-card__footer a:hover {
  color: rgba(37, 99, 235, 0.8);
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .login-card__mobile-logo {
    display: flex;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 20px;
  }
  
  .login-card > * {
    max-width: 100%;
  }

  .login-card__social {
    grid-template-columns: 1fr;
  }

  .login-card__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

