/* MF Checkin — login / OTP pages */

body.ck-login-bg {
  background:
    linear-gradient(135deg, rgba(15,23,42,.75) 0%, rgba(35,114,217,.65) 100%),
    url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.ck-login-wrap { width: 100%; max-width: 460px; }

.ck-login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--ck-shadow-lg);
  padding: 40px 35px;
  animation: ckSlideIn .35s ease-out;
}
@keyframes ckSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ck-login-logo { text-align: center; margin-bottom: 26px; }
.ck-login-logo img { height: 60px; }
.ck-login-logo h2 { color: #333; font-size: 26px; font-weight: 700; margin: 16px 0 4px; }
.ck-login-logo p { color: var(--ck-muted); font-size: 15px; margin: 0; }

.ck-field { margin-bottom: 20px; }
.ck-field label {
  display: block; margin-bottom: 8px;
  color: #555; font-weight: 600; font-size: 14px;
}
.ck-phone-group {
  display: flex;
  border: 2px solid var(--ck-border);
  border-radius: var(--ck-radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.ck-phone-group:focus-within {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 4px rgba(106,17,203,.1);
}
.ck-phone-prefix {
  display: flex; align-items: center; justify-content: center;
  padding: 0 15px;
  background: #f8f9ff;
  border-right: 2px solid var(--ck-border);
  color: #333; font-weight: 600;
  min-width: 70px;
}
.ck-phone-prefix i { margin-right: 6px; color: var(--ck-accent); }
.ck-phone-group .ck-input {
  border: 0; border-radius: 0; min-height: 52px;
}
.ck-phone-group .ck-input:focus { box-shadow: none; }

.ck-remember {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; font-size: 14px; color: #555;
}
.ck-remember input { transform: scale(1.15); accent-color: var(--ck-accent); }

.ck-otp-section {
  margin-top: 20px; padding-top: 22px;
  border-top: 1px solid var(--ck-border);
  display: none;
}
.ck-otp-section.active { display: block; animation: ckFadeIn .3s ease-out; }

.ck-otp-inputs {
  display: flex; justify-content: space-between;
  gap: 8px; margin-bottom: 18px;
}
.ck-otp-input {
  width: 100%;
  max-width: 52px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 2px solid var(--ck-border);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}
.ck-otp-input::-webkit-outer-spin-button,
.ck-otp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ck-otp-input:focus {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px rgba(106,17,203,.1);
}

.ck-resend {
  text-align: center; font-size: 13px;
  color: var(--ck-muted); margin-bottom: 14px;
}
.ck-resend a { color: var(--ck-accent); font-weight: 600; }
.ck-resend a[disabled] { pointer-events: none; opacity: .5; }

.ck-footer-link {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: var(--ck-muted);
}

@media (max-width: 500px) {
  .ck-login-card { padding: 30px 22px; }
  .ck-login-logo h2 { font-size: 22px; }
  .ck-otp-input { max-width: 42px; height: 48px; font-size: 18px; }
  .ck-phone-prefix { min-width: 60px; }
}
