/**
 * KiyoCRM Login Page - Split layout (teal left panel, white form right panel)
 * Full page: no box, no white/shade borders; left and right panels edge-to-edge.
 */
/* Full page: remove wrapper padding and any box; no borders */
.logged-out body {
  margin: 0;
  padding: 0;
  background: #0d9488;
}
.logged-out body #main-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 100vh !important;
}
#main-wrapper > .kiyo-login-page {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}
.kiyo-login-page {
  min-height: 100vh;
  display: flex;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
}
.kiyo-login-page .preloader {
  position: fixed;
  z-index: 9999;
}
/* Left panel - teal gradient */
.kiyo-login-left {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  background: radial-gradient(900px 480px at 10% 10%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #159a9c 0%, #27b8a5 45%, #42c97f 100%);
  position: relative;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
/* Decorative shapes */
.kiyo-login-left::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  filter: blur(2px);
  pointer-events: none;
}
.kiyo-login-left::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.kiyo-login-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kiyo-login-logo-link {
  display: inline-block;
  line-height: 0;
}
.kiyo-login-logo-img {
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
}
.kiyo-login-headline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 48px;
  max-width: 520px;
}
.kiyo-login-headline h1 {
  color: #fff !important;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.kiyo-login-headline p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 460px;
}
.kiyo-login-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}
.kiyo-login-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.kiyo-login-footer a:hover {
  color: #fff;
}
.kiyo-login-footer span {
  margin: 0 8px;
  opacity: 0.6;
}
/* Right panel - white form */
.kiyo-login-right {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  min-height: 100vh;
}
.kiyo-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px 36px;
}
.kiyo-login-card h2 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.kiyo-login-card .subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.kiyo-login-form-group {
  margin-bottom: 20px;
}
.kiyo-login-form-group label {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.kiyo-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.kiyo-login-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 1.1rem;
  pointer-events: none;
}
.kiyo-login-input-wrap input.form-control {
  width: 100%;
  padding: 12px 14px 12px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
}
.kiyo-login-input-wrap input.form-control:focus {
  border-color: #0d9488;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.kiyo-login-input-wrap input.form-control::placeholder {
  color: #9ca3af;
}
.kiyo-login-input-wrap .password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
}
.kiyo-login-input-wrap .password-toggle:hover {
  color: #6b7280;
}
.kiyo-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.kiyo-login-options .custom-control {
  margin-bottom: 0;
}
.kiyo-login-options .custom-control-description {
  color: #6b7280;
  font-size: 0.875rem;
}
.kiyo-login-options a#to-recover {
  color: #0d9488;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
}
.kiyo-login-options a#to-recover:hover {
  color: #0f766e;
  text-decoration: underline;
}
/* Matches project-wide primary button (custom.css teal) */
.kiyo-login-btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: var(--kiyo-primary, #0d9488);
  color: #fff !important;
  border: none;
  border-radius: var(--kiyo-button-radius, 8px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.kiyo-login-btn-primary:hover {
  background: var(--kiyo-primary-dark, #0f766e);
  color: #fff;
}
.kiyo-login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 0.8rem;
}
.kiyo-login-divider::before,
.kiyo-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.kiyo-login-divider span {
  padding: 0 12px;
}
.kiyo-login-social {
  display: flex;
  gap: 12px;
}
.kiyo-login-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.kiyo-login-social-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  color: #374151;
}
.kiyo-login-social-btn img {
  width: 20px;
  height: 20px;
}
.kiyo-login-create {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #6b7280;
}
.kiyo-login-create a {
  color: #0d9488;
  font-weight: 600;
  text-decoration: none;
}
.kiyo-login-create a:hover {
  color: #0f766e;
  text-decoration: underline;
}
/* reCAPTCHA area */
.kiyo-login-page .m-b-20 {
  margin-bottom: 20px;
}
/* Responsive */
@media (max-width: 992px) {
  .kiyo-login-left {
    display: none;
  }
  .kiyo-login-right {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
@media (max-width: 576px) {
  .kiyo-login-right {
    padding: 24px 20px;
  }
  .kiyo-login-card {
    padding: 28px 24px;
  }
  .kiyo-login-social {
    flex-direction: column;
  }
}
