/**
 * GoToTask — Premium authentication pages (login, forgot password, onboarding).
 */

.gtt-auth-page {
  margin: 0;
  background: #f1f5f9;
  min-height: 100vh;
}

.gtt-auth-main {
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
}

.gtt-auth-shell {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #e2e8f0;
}

.gtt-auth-brand {
  flex: 1 1 420px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 45%, #9333ea 100%);
}

.gtt-auth-brand::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.04'%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");
  opacity: 0.5;
}

.gtt-auth-brand-inner {
  max-width: 28rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.gtt-auth-brand h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gtt-auth-brand-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.gtt-auth-benefits {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.gtt-auth-benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gtt-auth-benefit-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
}

.gtt-auth-benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.gtt-auth-benefit p {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}

.gtt-auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.gtt-auth-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  backdrop-filter: blur(8px);
}

.gtt-auth-stat strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.gtt-auth-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.gtt-auth-form-panel {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: #fff;
}

.gtt-auth-form-inner {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.gtt-auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.gtt-auth-logo img {
  height: 3rem;
  margin: 0 auto;
}

.gtt-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gtt-auth-header h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.gtt-auth-header p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

.gtt-auth-header a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

.gtt-auth-header a:hover {
  text-decoration: underline;
}

.gtt-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.gtt-auth-form .form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.gtt-auth-form .form-input {
  font-size: 1.0625rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.gtt-auth-form .form-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.gtt-auth-form .btn-primary {
  width: 100%;
  min-height: 52px;
  font-size: 1.0625rem;
  border-radius: 12px;
}

.gtt-auth-back {
  text-align: center;
  margin-top: 2rem;
}

.gtt-auth-back a {
  color: #64748b;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gtt-auth-back a:hover {
  color: #6366f1;
}

.gtt-pw-field {
  position: relative;
}

.gtt-pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  color: #64748b;
  border-radius: 8px;
}

.gtt-pw-toggle:hover {
  color: #6366f1;
  background: #f1f5f9;
}

.gtt-auth-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.gtt-auth-forgot-row .form-label {
  margin-bottom: 0;
}

.gtt-auth-forgot-row a {
  font-size: 0.9375rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

/* Compact auth (forgot password) */
.gtt-auth-compact {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 2.75rem);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .gtt-auth-brand {
    min-height: auto;
    padding: 2.5rem 1.5rem;
  }
  .gtt-auth-benefits {
    display: none;
  }
}
