.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f8f9fb;
  position: relative;
  overflow: hidden;
}

/* Ana site header (landing ile aynı) kullanıldığında sabit bar altında içerik */
.login-page.login-page--with-site-header {
  padding-top: 88px;
}

.login-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(236, 9, 114, 0.08), transparent 70%);
  pointer-events: none;
}

.login-bg-blob-left {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(236, 9, 114, 0.03);
  border-radius: 50%;
  filter: blur(60px);
}

.login-bg-blob-right {
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 107, 179, 0.03);
  border-radius: 50%;
  filter: blur(60px);
}

.login-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  position: relative;
  min-height: 0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

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

.login-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  gap: 12px;
}

.login-header-top .login-logo {
  margin-bottom: 0;
}

.login-logo {
  display: inline-block;
  margin-bottom: 24px;
}

.login-logo img {
  height: 40px;
  width: auto;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 16px;
  color: #6b7280;
}

.login-back-home {
  width: 100%;
  max-width: 420px;
  margin: 0;
  text-align: center;
  display: none;
}

@media (min-width: 641px) {
  .login-back-home,
  .login-back-home-link {
    display: none !important;
  }
}

.login-back-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.login-back-home-link:hover {
  color: var(--accent, #ec0972);
}

.login-back-home-link svg {
  flex-shrink: 0;
}

.login-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 24px;
}

.login-success {
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: #10b981;
  font-size: 14px;
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-label svg {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #ec0972;
  box-shadow: 0 0 0 3px rgba(236, 9, 114, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: -4px;
}

/* Landing form class'ları için stiller (forgot-password.html için) */
.landing-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
}

.landing-form-label svg {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
}

.landing-form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
}

.landing-form-input:focus {
  border-color: #ec0972;
  box-shadow: 0 0 0 3px rgba(236, 9, 114, 0.1);
}

.landing-form-input::placeholder {
  color: #9ca3af;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #6b7280;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.forgot-password-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #ec0972;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.login-button:hover {
  transform: translateY(-2px);
  background: #d10865;
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-button svg {
  width: 18px;
  height: 18px;
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.login-footer p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.signup-link {
  font-size: 14px;
  font-weight: 600;
  color: #ec0972;
  text-decoration: none;
  transition: color 0.2s;
}

.signup-link:hover {
  color: #d10865;
}

@media (max-width: 640px) {
  .login-back-home {
    display: block;
  }

  .login-card {
    padding: 32px 24px;
  }

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

/* —— Koyu tema (body.theme-dark; token’lar landing-styles’tan gelir) —— */
body.theme-dark .login-page {
  background: var(--bg-light);
}

body.theme-dark .login-bg-gradient {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(236, 9, 114, 0.14), transparent 70%);
}

body.theme-dark .login-bg-blob-left {
  background: rgba(236, 9, 114, 0.08);
}

body.theme-dark .login-bg-blob-right {
  background: rgba(255, 107, 179, 0.06);
}

body.theme-dark .login-card {
  background: var(--bg-white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

body.theme-dark .login-title {
  color: var(--text-dark);
}

body.theme-dark .login-subtitle,
body.theme-dark .form-hint {
  color: var(--text-muted);
}

body.theme-dark .login-back-home-link {
  color: var(--text-secondary);
}

body.theme-dark .login-back-home-link:hover {
  color: var(--accent);
}

body.theme-dark .form-label {
  color: var(--text-secondary);
}

body.theme-dark .form-label svg {
  color: var(--text-muted);
}

body.theme-dark .form-input,
body.theme-dark .landing-form-input {
  color: var(--text-dark);
  background: var(--bg-light-secondary);
  border-color: var(--border-light);
}

body.theme-dark .form-input::placeholder,
body.theme-dark .landing-form-input::placeholder {
  color: var(--text-muted);
}

body.theme-dark .password-toggle {
  color: var(--text-muted);
}

body.theme-dark .password-toggle:hover {
  color: var(--text-secondary);
}

body.theme-dark .login-footer {
  border-top-color: var(--border-light);
}

body.theme-dark .login-footer p {
  color: var(--text-secondary);
}

.login-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  max-width: 520px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.login-legal-footer a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
}

.login-legal-footer a:hover {
  color: var(--mor-primary-text, #ec0972);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.theme-dark .login-legal-footer a {
  color: var(--text-muted);
}

body.theme-dark .login-legal-footer a:hover {
  color: var(--mor-primary-text);
}

