body.page-template-templateslogin-page-template-php,
body.page-template-login-page-template {
    background: var(--tte-gradient-light);
}

.tte-auth-shell {
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

.tte-auth-card {
  width: 100%;
  max-width: 1180px;
  background: #E1EAF5;
  border-radius: 34px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.tte-auth-grid {
  width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    min-height: 720px;
    max-width: 1000px;
}

.tte-auth-panel-form {
    padding: 32px 34px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tte-auth-panel-visual {
  padding: 18px 18px 18px 0;
}

.tte-auth-brand {
  margin-bottom: 18px;
}

.tte-auth-logo {
  width: 145px;
  max-width: 100%;
  height: auto;
  display: block;
    margin: auto;
}

.tte-auth-brand-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #a8b0ba;
  border-radius: 999px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
}

.tte-auth-content {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 6px 0 10px;
}

.tte-auth-heading {
  text-align: center;
  margin-bottom: 24px;
}

.tte-auth-heading h1 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.04;
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.tte-auth-heading p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}

.tte-auth-form {
  margin-top: 10px;
}

.tte-input-group {
  margin-bottom: 16px;
}

.tte-input-group label {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.tte-input-field {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #ece8df;
  border-radius: 999px;
  background: #fbfaf7;
  color: #111827;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

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

.tte-input-field:focus {
  outline: none;
  border-color: rgba(var(--tte-primary-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--tte-primary-rgb), 0.1);
  background: #fff;
}

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

.tte-password-wrapper .tte-input-field {
  padding-right: 52px !important;
}

.tte-password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  z-index: 2;
}

.tte-password-toggle:hover,
.tte-password-toggle:focus {
  color: var(--tte-primary);
  outline: none;
  box-shadow: none;
}

.tte-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 22px;
}

.tte-auth-row-stack {
  align-items: flex-start;
}

.tte-checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.5;
}

.tte-checkbox-container input[type="checkbox"] {
  display: none;
}

.tte-checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  position: relative;
  background: #fff;
}

.tte-checkbox-container input[type="checkbox"]:checked + .tte-checkmark {
  background: var(--tte-primary);
  border-color: var(--tte-primary);
}

.tte-checkbox-container input[type="checkbox"]:checked + .tte-checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tte-checkbox-container a,
.tte-auth-link {
  color: var(--tte-primary);
  text-decoration: none;
  font-weight: 500;
}

.tte-checkbox-container a:hover,
.tte-auth-link:hover {
  text-decoration: underline;
}

.tte-auth-submit,
.tte-btn-primary.tte-auth-submit {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--tte-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tte-auth-submit:hover,
.tte-btn-primary.tte-auth-submit:hover {
  background: var(--tte-primary-dark);
  transform: translateY(-1px);
}

#wp-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.tte-auth-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  color: #6b7280;
  font-size: 13px;
}

.tte-auth-footer a {
  color: #374151;
  text-decoration: underline;
}

.tte-auth-footer-left a {
  color: var(--tte-primary);
  font-weight: 600;
  text-decoration: none;
}

.tte-auth-footer-left a:hover {
  text-decoration: underline;
}

.tte-auth-visual-wrap {
  position: relative;
  height: 100%;
  min-height: 684px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--tte-primary-rgb), 0.18), rgba(var(--tte-primary-rgb), 0.05));
}

.tte-auth-visual-image {
  position: absolute;
  inset: 0;
}

.tte-auth-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

.tte-auth-floating {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  color: #111827;
}

.tte-auth-floating strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.tte-auth-floating span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}

.tte-auth-floating-top {
  top: 18px;
  left: 18px;
  border-top: 4px solid var(--tte-primary);
}

.tte-auth-floating-bottom {
  left: 26px;
  bottom: 24px;
  border-top: 4px solid var(--tte-primary-dark);
}

.tte-success-message,
.tte-error-message {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.tte-success-message {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.tte-error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.tte-error-message p,
.tte-success-message p {
  margin: 0 0 6px;
}

.tte-error-message p:last-child,
.tte-success-message p:last-child {
  margin-bottom: 0;
}

.tte-auth-inline-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .tte-auth-grid {
    grid-template-columns: 1fr;
  }

  .tte-auth-panel-visual {
    padding: 0 18px 18px;
  }

  .tte-auth-visual-wrap {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .tte-auth-shell {
    padding: 18px 12px;
  }

  .tte-auth-card {
    border-radius: 24px;
  }

  .tte-auth-panel-form {
    padding: 24px 18px 22px;
  }

  .tte-auth-content {
    max-width: 100%;
  }

  .tte-auth-heading h1 {
    font-size: 34px;
  }

  .tte-auth-row,
  .tte-auth-footer,
  .tte-auth-inline-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .tte-auth-inline-actions {
    align-items: stretch;
  }

  .tte-auth-visual-wrap {
    min-height: 300px;
    border-radius: 22px;
  }

  .tte-auth-floating {
    max-width: 200px;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .tte-auth-heading h1 {
    font-size: 28px;
  }

  .tte-auth-footer {
    font-size: 12px;
  }
}