:root {
  --rc-red: #9f1b1f;
  --rc-red-dark: #741216;
  --rc-navy: #082f49;
  --rc-bg: #f5f1ee;
  --rc-muted: #68717d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #20252b;
  background:
    radial-gradient(circle at 88% 12%, rgba(159, 27, 31, .13), transparent 28rem),
    radial-gradient(circle at 8% 92%, rgba(8, 47, 73, .09), transparent 26rem),
    var(--rc-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
  width: min(100%, 960px);
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(310px, .9fr) minmax(390px, 1.1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8, 47, 73, .08);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(49, 30, 23, .16);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 42px 38px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(255,255,255,.10), transparent 38%),
    linear-gradient(180deg, var(--rc-red), var(--rc-red-dark));
}

.brand-logo-box {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  background: rgba(255,255,255,.98);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(52, 5, 8, .25);
}

.brand-logo-box img {
  width: 145px;
  height: 145px;
  object-fit: contain;
}

.brand-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -.04em;
}

.brand-panel p {
  max-width: 330px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.65;
}

.brand-signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
}

.brand-signature strong { color: #fff; }

.login-panel {
  display: flex;
  align-items: center;
  padding: clamp(34px, 6vw, 66px);
}

.login-content { width: 100%; }

.mobile-logo {
  width: 96px;
  height: 96px;
  display: none;
  object-fit: contain;
  margin: 0 auto 18px;
  padding: 5px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(49, 30, 23, .12);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--rc-red);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-title {
  margin: 0 0 9px;
  color: var(--rc-navy);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -.035em;
}

.login-subtitle {
  margin-bottom: 28px;
  color: var(--rc-muted);
  line-height: 1.55;
}

.form-label {
  color: var(--rc-navy);
  font-size: .88rem;
  font-weight: 750;
}

.form-control {
  min-height: 50px;
  padding: 12px 14px;
  border-color: #d8dde3;
  border-radius: 12px;
}

.form-control:focus {
  border-color: rgba(159, 27, 31, .62);
  box-shadow: 0 0 0 .22rem rgba(159, 27, 31, .12);
}

.btn-login {
  min-height: 50px;
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--rc-red), var(--rc-red-dark));
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(159, 27, 31, .20);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-login:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(159, 27, 31, .27);
}

.secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: .88rem;
}

.secondary-actions a,
.register-copy a {
  color: var(--rc-red);
  font-weight: 700;
  text-decoration: none;
}

.secondary-actions a:hover,
.register-copy a:hover { text-decoration: underline; }

.register-copy {
  margin: 18px 0 0;
  color: var(--rc-muted);
  font-size: .9rem;
  text-align: center;
}

.access-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 12px 14px;
  color: var(--rc-muted);
  background: #f7f9fa;
  border: 1px solid #e8ebee;
  border-radius: 12px;
  font-size: .8rem;
  line-height: 1.45;
}

.alert { border-radius: 12px; }

@media (max-width: 767.98px) {
  body { display: block; padding: 14px; }
  .login-shell { min-height: calc(100vh - 28px); display: block; border-radius: 20px; }
  .brand-panel { display: none; }
  .login-panel { min-height: calc(100vh - 28px); padding: 32px 24px; }
  .mobile-logo { display: block; }
  .login-content { max-width: 440px; margin: 0 auto; }
  .eyebrow, .login-title, .login-subtitle { text-align: center; }
}

@media (max-width: 420px) {
  .secondary-actions { flex-direction: column; align-items: center; }
}
