/* =========================================================
   Kron Arcade - Pure Code Apple + Duolingo Login Modal CSS
   Zero-image, pure vector SVG, Apple ID clean minimalism
   ========================================================= */

.kron-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kron-auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kron-auth-sheet {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 36px 32px 32px;
  position: relative;
  text-align: center;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kron-auth-modal.is-open .kron-auth-sheet {
  transform: scale(1) translateY(0);
}

.kron-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kron-auth-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #0F172A;
  transform: scale(1.08);
}

.kron-auth-mascot {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  display: block;
}

.kron-auth-mascot svg.kron-head {
  width: 100%;
  height: 100%;
}

.kron-auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.kron-auth-sub {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 24px;
}

/* Tabs: Password vs SMS Code */
.kron-auth-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.kron-auth-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kron-auth-tab.is-active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Inputs */
.kron-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.kron-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  margin-left: 4px;
}

.kron-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kron-input {
  width: 100%;
  height: 48px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  color: #0F172A;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.kron-input:focus {
  background: #FFFFFF;
  border-color: #0071E3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Code send button inside SMS input */
.kron-code-btn {
  position: absolute;
  right: 6px;
  height: 36px;
  padding: 0 14px;
  background: #0071E3;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.kron-code-btn:hover:not(:disabled) {
  background: #0077ED;
  transform: translateY(-1px);
}

.kron-code-btn:disabled {
  background: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
}

/* Quick test code hint */
.kron-test-hint {
  font-size: 12px;
  color: #0284C7;
  background: #E0F2FE;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kron-test-hint button {
  background: transparent;
  border: none;
  color: #0369A1;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Submit 3D Duolingo Button */
.kron-auth-submit {
  width: 100%;
  height: 50px;
  background: #58CC02;
  border: none;
  border-bottom: 4px solid #46A302;
  border-radius: 16px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.1s ease;
  margin-top: 10px;
}

.kron-auth-submit:hover {
  background: #61E002;
  transform: translateY(-1px);
}

.kron-auth-submit:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.kron-auth-footer {
  margin-top: 20px;
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kron-auth-footer a, .kron-auth-footer button {
  color: #0071E3;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
