:root {
  --rh-navy: #002F6C;
  --rh-navy-deep: #001f4a;
  --rh-lime: #BDE724;
  --rh-lime-hover: #a9d017;
  --rh-text: #1a2233;
  --rh-muted: #6b7280;
  --rh-border: #d6dbe2;
  --rh-bg: #f4f6fa;
  --rh-error: #b3261e;
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--rh-text);
  background: linear-gradient(135deg, var(--rh-navy) 0%, var(--rh-navy-deep) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-signin {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 14px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25),
              0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.signin-header .brand {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--rh-navy);
  margin-bottom: 6px;
}

.signin-header .tagline {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rh-muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.signin-header .lime-bar {
  display: block;
  width: 48px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--rh-lime);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 14px;
}

input[type="password"].form-control {
  margin-bottom: 14px;
}

.form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--rh-text);
  background: #fff;
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: #9aa3b2;
}

.form-control:focus {
  outline: none;
  border-color: var(--rh-navy);
  box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.15);
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 8px;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(189, 231, 36, 0.45);
}

.btn-lg {
  padding: 14px 18px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background: var(--rh-navy);
  color: #fff;
  border-color: var(--rh-navy);
}

.btn-primary:hover {
  background: var(--rh-navy-deep);
  border-color: var(--rh-navy-deep);
}

.btn-primary:active {
  transform: translateY(1px);
}

.text-danger {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--rh-error);
  background: #fdecea;
  border: 1px solid #f5c2bf;
  border-radius: 6px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 420px) {
  .form-signin {
    padding: 32px 22px 24px;
  }
  .signin-header .brand { font-size: 20px; }
  .signin-header .tagline { font-size: 11.5px; }
}
