/* ============================================================
   KESSY TECH PRO — Auth Pages Extended Styles
   (Complements main.css ktp-auth-* classes)
   ============================================================ */

/* Brand logo image used in the auth welcome section */
.ktp-brand-logo {
  display: block;
  margin: 0 auto 1rem;
  width: 90px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ktp-welcome-section {
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .ktp-brand-logo {
    width: 68px;
  }
}

@media (min-width: 768px) {
  .ktp-brand-logo {
    width: 100px;
  }
}

/* Ensure body has light bg when auth page is open */
body:has(.ktp-auth-page) {
  background: linear-gradient(135deg, #f7f8fb 0%, #ffffff 60%, #f0f2f8 100%);
}

/* Auth form grid helper */
.auth-form .grid {
  display: grid;
  gap: 1rem;
}

.auth-form .grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 480px) {
  .auth-form .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Checkbox styling for auth forms */
.auth-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: #975BC1;
  cursor: pointer;
  flex-shrink: 0;
}

/* Password field type */
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border: 1.5px solid #e4e8f0;
  border-radius: 0.625rem;
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="tel"]:focus {
  outline: none;
  border-color: #975BC1;
  box-shadow: 0 0 0 3px rgba(151,91,193,0.1);
}

.auth-form select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border: 1.5px solid #e4e8f0;
  border-radius: 0.625rem;
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}

.auth-form select:focus {
  outline: none;
  border-color: #975BC1;
  box-shadow: 0 0 0 3px rgba(151,91,193,0.1);
}
