/* Mahalle Mektebi — UI polish (CDN yok) */

.mm-auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.mm-auth-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.35rem;
}

.mm-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.mm-auth-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.mm-auth-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.mm-auth-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
}

.mm-auth-bullets li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #475569;
}

.mm-auth-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #0d6efd;
}

.mm-code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.45rem !important;
  font-weight: 700;
}

.mm-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.mm-countdown.is-ready {
  background: #ecfdf5;
  color: #047857;
}

.mm-btn-loading .mm-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mm-spin 0.7s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.4rem;
}

.mm-btn-loading .mm-btn-loading-text {
  vertical-align: middle;
}

.mm-icon-btn.mm-btn-loading .mm-spinner {
  margin-right: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-color: rgba(57, 44, 125, 0.2);
  border-top-color: #392c7d;
}

.btn-light.mm-btn-loading .mm-spinner,
.btn-outline-secondary.mm-btn-loading .mm-spinner,
.btn-outline-primary.mm-btn-loading .mm-spinner,
.btn-outline-danger.mm-btn-loading .mm-spinner,
.btn-warning.mm-btn-loading .mm-spinner {
  border-color: rgba(57, 44, 125, 0.2);
  border-top-color: #392c7d;
  margin-right: 0.4rem;
}

.btn-danger.mm-btn-loading .mm-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.mm-field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.35;
}

.mm-field-error[hidden] {
  display: none !important;
}

.form-control.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.12);
}

@keyframes mm-spin {
  to { transform: rotate(360deg); }
}

.mm-upload {
  position: relative;
  display: block;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.mm-upload:hover,
.mm-upload.is-dragover {
  border-color: #0d6efd;
  background: #eff6ff;
}

.mm-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mm-upload-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.mm-upload-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.mm-upload-name {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #0d6efd;
  font-weight: 600;
  word-break: break-all;
}

.mm-flash {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.mm-required::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .mm-auth-card {
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }
  .mm-code-input {
    font-size: 1.25rem !important;
  }
}
