/* Self-contained, same-origin styling for the LCS Cikal authentication pages.
   Lives under public/ (served directly by nginx) so it has zero dependency on the
   asset pipeline (production runs with config.assets.compile = false) and zero
   external host. Replaces the dead WordPress/Elementor login styling. */

:root {
  --cikal-navy: #27336b;
  --cikal-navy-dark: #1c2650;
  --cikal-orange: #f5a51e;
  --cikal-muted: #6b7280;
  --cikal-border: #e3e6ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.cikal-auth {
  align-items: center;
  background-color: #eef2f8;
  background-image: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.55)),
    url("login-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.cikal-auth__card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
  max-width: 420px;
  padding: 40px 36px;
  width: 100%;
}

.cikal-auth__logo {
  display: block;
  height: auto;
  margin: 0 auto 26px;
  max-width: 230px;
  width: 100%;
}

.cikal-auth__title {
  color: var(--cikal-navy);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
}

.cikal-auth__subtitle {
  color: var(--cikal-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 28px;
  text-align: center;
}

.cikal-auth__group {
  margin-bottom: 18px;
}

.cikal-auth__label {
  color: #374151;
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}

.cikal-auth__input {
  background: #ffffff;
  border: 1px solid var(--cikal-border);
  border-radius: 10px;
  color: #1f2937;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.cikal-auth__input:focus {
  border-color: var(--cikal-navy);
  box-shadow: 0 0 0 3px rgba(39, 51, 107, 0.12);
}

.cikal-auth__hint {
  color: #b42318;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
}

.cikal-auth__btn {
  background: var(--cikal-navy);
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  padding: 13px 16px;
  transition: background 0.15s ease;
  width: 100%;
}

.cikal-auth__btn:hover {
  background: var(--cikal-navy-dark);
}

.cikal-auth__btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cikal-auth__link {
  color: var(--cikal-navy);
  display: block;
  font-size: 13px;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
}

.cikal-auth__link:hover {
  text-decoration: underline;
}

.cikal-auth__muted {
  color: var(--cikal-muted);
  font-size: 13px;
  text-align: center;
}

.cikal-auth__flash {
  background: #eef2f8;
  border-radius: 10px;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
  padding: 12px 14px;
}

.cikal-auth__flash--danger,
.cikal-auth__flash--alert {
  background: #fde8e8;
  color: #b42318;
}

.cikal-auth__flash--warning {
  background: #fef3cd;
  color: #92610a;
}

.cikal-auth__flash--success,
.cikal-auth__flash--notice {
  background: #e7f6ec;
  color: #11734b;
}

.cikal-auth__flash--info {
  background: #e7f0fb;
  color: #1c4e8a;
}

@media (max-width: 480px) {
  .cikal-auth__card {
    padding: 30px 22px;
  }
}
