html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(30, 96, 145, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(27, 110, 194, 0.18), transparent 26%),
    linear-gradient(135deg, #eef3f8 0%, #d7dee8 48%, #cbd5df 100%);
  color: #1f2937;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-shell {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.auth-card {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
}

.auth-card-single {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.auth-panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-logo {
  width: clamp(120px, 15vw, 220px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  padding: 3rem;
  justify-content: center;
}

.auth-form {
  width: 100%;
}

.auth-form-header {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-panel-kicker {
  background: #e7f0f8;
  color: #0d4c7b;
  margin-bottom: 1rem;
}

.auth-form-logo {
  width: clamp(180px, 28vw, 280px);
  margin-bottom: 1.25rem;
}

.auth-form-header h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.auth-form-header p {
  margin: 0;
  color: #5b6472;
  line-height: 1.6;
}

.auth-field {
  margin-bottom: 1.15rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #334155;
}

.auth-input {
  min-height: 3.2rem;
  border-radius: 16px;
  border: 1px solid #c9d5e2;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #f8fbfd;
}

.auth-input:focus {
  border-color: #2f7ac0;
  background: #ffffff;
}

.auth-actions {
  margin-top: 1.5rem;
}

.auth-password-hint {
  margin-top: 0.25rem;
  color: #5b6472;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-submit {
  min-width: 10rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  background: #1567a7;
  box-shadow: 0 16px 30px rgba(38, 128, 207, 0.22);
}

.auth-submit:hover,
.auth-submit:focus {
  background: #0f578d;
}

.auth-submit-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b54040, #d45c5c);
  box-shadow: 0 16px 30px rgba(180, 64, 64, 0.18);
}

.auth-submit-secondary:hover,
.auth-submit-secondary:focus {
  background: linear-gradient(135deg, #9d3535, #bb4f4f);
}

.auth-alert {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #f1b5b5;
  background: #fff2f2;
  color: #a12727;
  font-weight: 600;
}

.auth-app-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  border-radius: 16px;
  background: #eff6fc;
  color: #0d4c7b;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-app-link:hover,
.auth-app-link:focus {
  background: #dfeefb;
  color: #083a5e;
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .auth-card,
  .auth-form-panel {
    padding: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 1rem 0 2rem;
  }

  .auth-card {
    border-radius: 22px;
  }

  .auth-form-panel {
    padding: 1.5rem;
  }

  .auth-logo {
    width: 160px;
  }

  .auth-submit,
  .auth-submit-secondary {
    width: 100%;
  }
}
