:root {
  --bcl-bg-1: #0f2a33;
  --bcl-bg-2: #214651;
  --bcl-bg-3: #2f6170;
  --bcl-card-bg: rgba(255, 255, 255, 0.9);
  --bcl-card-border: rgba(255, 255, 255, 0.35);
  --bcl-text: #0f172a;
  --bcl-muted: #64748b;
  --bcl-primary: #214651;
  --bcl-primary-hover: #163842;
  --bcl-success-bg: #ecfdf5;
  --bcl-success-text: #065f46;
  --bcl-error-bg: #fef2f2;
  --bcl-error-text: #991b1b;
  --bcl-shadow: 0 25px 80px rgba(2, 6, 23, 0.25);
  --bcl-radius: 28px;
}

html, body {
  min-height: 100%;
}

body.bcl-body {
  margin: 0;
  color: var(--bcl-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 97, 112, 0.22), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(33, 70, 81, 0.20), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(47, 97, 112, 0.18), transparent 30%),
    linear-gradient(145deg, #08171d 0%, var(--bcl-bg-1) 35%, var(--bcl-bg-2) 72%, var(--bcl-bg-3) 100%);
}

body.bcl-body::before,
body.bcl-body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(12px);
}

body.bcl-body::before {
  width: 240px;
  height: 240px;
  left: -70px;
  top: -70px;
  background: rgba(255, 255, 255, 0.07);
}

body.bcl-body::after {
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.05);
}

.bcl-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.bcl-panel {
  position: relative;
}

.bcl-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.bcl-card {
  width: min(100%, 520px);
  padding: 34px;
  border-radius: var(--bcl-radius);
  background: var(--bcl-card-bg);
  border: 1px solid var(--bcl-card-border);
  box-shadow: var(--bcl-shadow);
  backdrop-filter: blur(18px);
}

.bcl-card-header {
  margin-bottom: 24px;
  text-align: center;
}

.bcl-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.bcl-logo-fallback {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2f6170, var(--bcl-primary));
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(33, 70, 81, 0.28);
}

.bcl-card-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.bcl-card-header p {
  margin: 0;
  color: var(--bcl-muted);
  line-height: 1.7;
}

.bcl-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.bcl-alert--error {
  background: var(--bcl-error-bg);
  color: var(--bcl-error-text);
}

.bcl-alert--success {
  background: var(--bcl-success-bg);
  color: var(--bcl-success-text);
}

.bcl-form {
  display: grid;
  gap: 14px;
}

.bcl-label {
  font-size: 14px;
  font-weight: 700;
}

.bcl-input-wrap {
  position: relative;
}

.bcl-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255,255,255,0.82);
  color: var(--bcl-text);
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bcl-input:focus {
  border-color: rgba(33, 70, 81, 0.58);
  box-shadow: 0 0 0 4px rgba(33, 70, 81, 0.12);
  background: #fff;
}

.bcl-input-wrap--password .bcl-input {
  padding-right: 86px;
}

.bcl-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--bcl-primary);
  font-weight: 700;
  cursor: pointer;
}

.bcl-toggle-password__hide {
  display: none;
}

.bcl-toggle-password.is-visible .bcl-toggle-password__show {
  display: none;
}

.bcl-toggle-password.is-visible .bcl-toggle-password__hide {
  display: inline;
}

.bcl-form-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 2px;
}

.bcl-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bcl-muted);
  font-size: 14px;
}

.bcl-checkbox input {
  width: 16px;
  height: 16px;
}

.bcl-link {
  color: var(--bcl-primary);
  text-decoration: none;
  font-weight: 700;
}

.bcl-link:hover {
  color: var(--bcl-primary-hover);
}

.bcl-submit {
  margin-top: 8px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f6170, var(--bcl-primary));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(33, 70, 81, 0.26);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.bcl-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(33, 70, 81, 0.32);
}

.bcl-submit:active {
  transform: translateY(0);
}

.bcl-footer-links {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 640px) {
  .bcl-panel--form {
    padding: 18px;
  }

  .bcl-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .bcl-form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .bcl-brand-content h1 {
    font-size: 34px;
  }
}


.bcl-credit {
  margin-top: 14px;
  color: var(--bcl-muted);
  font-size: 13px;
}
