/* TechOne CRM – Guest / Auth pages (login, register, forgot password) */
:root {
  --toc-primary: #0d9488;
  --toc-primary-dark: #0f766e;
  --toc-dark: #0f172a;
  --toc-muted: #64748b;
  --toc-gradient: linear-gradient(135deg, #0d9488 0%, #0e7490 50%, #6366f1 100%);
  --toc-gradient-bg: linear-gradient(160deg, #f0fdfa 0%, #e0f2fe 40%, #f5f3ff 100%);
  --toc-radius: 16px;
  --toc-radius-lg: 24px;
  --toc-shadow: 0 8px 32px rgba(13, 148, 136, 0.12);
  --toc-shadow-lg: 0 24px 48px rgba(13, 148, 136, 0.18);
  --toc-transition: all 0.25s ease;
}

body.guest-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--toc-gradient-bg);
  color: var(--toc-dark);
}

/* Header */
.guest-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0;
}

.guest-header .guest-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--toc-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: var(--toc-transition);
}

.guest-header .guest-brand:hover {
  color: var(--toc-primary);
}

.guest-header .guest-nav a {
  font-weight: 600;
  color: var(--toc-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  transition: var(--toc-transition);
}

.guest-header .guest-nav a:hover {
  color: var(--toc-primary);
  background: rgba(13, 148, 136, 0.08);
}

.guest-header .guest-nav .btn-get-started {
  background: var(--toc-gradient);
  color: white !important;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.guest-header .guest-nav .btn-get-started:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: white !important;
}

.guest-header .guest-nav .guest-nav-wa {
  background: #25d366;
  color: white !important;
  font-weight: 700;
}

.guest-header .guest-nav .guest-nav-wa:hover {
  background: #20bd5a;
  color: white !important;
}

.register-wa-hint {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.btn-guest-wa {
  background: #25d366 !important;
  color: white !important;
  font-weight: 700;
  border: none;
  border-radius: 10px;
}

.btn-guest-wa:hover {
  background: #20bd5a !important;
  color: white !important;
}

.register-trust {
  text-align: left;
  padding-left: 0.25rem;
}

.guest-card .g-recaptcha {
  transform-origin: 0 0;
}

@media (max-width: 400px) {
  .guest-card .g-recaptcha {
    transform: scale(0.88);
  }
}

.recaptcha-legal a {
  color: var(--toc-primary);
}

/* Main content */
.guest-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
}

.guest-card {
  background: white;
  border-radius: var(--toc-radius-lg);
  box-shadow: var(--toc-shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.guest-card .guest-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.guest-card .guest-card-header .guest-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--toc-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.guest-card .guest-card-header h1 {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--toc-dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.guest-card .guest-card-header p {
  font-size: 0.95rem;
  color: var(--toc-muted);
  margin: 0;
}

/* Form */
.guest-card .form-label {
  font-weight: 600;
  color: var(--toc-dark);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.guest-card .form-control {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: var(--toc-transition);
}

.guest-card .form-control:focus {
  border-color: var(--toc-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  outline: none;
}

.guest-card .form-control::placeholder {
  color: #94a3b8;
}

.guest-card .btn-guest-primary {
  background: var(--toc-gradient);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  width: 100%;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
  transition: var(--toc-transition);
}

.guest-card .btn-guest-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
  color: white;
}

.guest-card .guest-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: var(--toc-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.guest-card .guest-divider::before,
.guest-card .guest-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.guest-card .guest-divider span {
  padding: 0 1rem;
}

.guest-card .guest-link {
  color: var(--toc-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--toc-transition);
}

.guest-card .guest-link:hover {
  color: var(--toc-primary-dark);
  text-decoration: underline;
}

.guest-card .alert {
  border-radius: 12px;
  font-size: 0.9rem;
}

.guest-card .alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.guest-card .alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Footer */
.guest-footer {
  background: var(--toc-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.guest-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s;
}

.guest-footer a:hover {
  color: white;
}

.guest-footer .guest-footer-brand {
  font-weight: 700;
  color: white;
}

@media (max-width: 576px) {
  .guest-card {
    padding: 1.75rem 1.25rem;
  }
  .guest-header .guest-nav a:not(.btn-get-started) {
    display: none;
  }
}
