﻿*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --rev-ink: #111111;
  --rev-slate: #1f2937;
  --rev-muted: #4b5563;
  --rev-faint: #6b7280;
  --rev-border: #e5e5e5;
  --rev-paper: #ffffff;
  --rev-soft: #f6f7f8;
  --rev-gold: #c89b3c;
  --rev-gold-dark: #7a5b00;
  --rev-green: #16a34a;
}

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

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #fbfbfb 0%, #f2f4f6 100%);
  color: var(--rev-ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--rev-ink);
  font-weight: 800;
  text-decoration-color: rgba(200, 155, 60, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rev-gold-dark);
}

.identity-header {
  border-bottom: 1px solid var(--rev-border);
  background: rgba(255, 255, 255, 0.94);
}

.identity-header .navbar {
  min-height: 68px;
  padding-block: 0.75rem;
}

.identity-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rev-ink);
  font-weight: 850;
  letter-spacing: 0;
}

.identity-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--rev-ink);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.identity-header .nav-link {
  color: var(--rev-muted) !important;
  font-weight: 750;
}

.identity-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 90px;
}

.identity-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  min-height: 650px;
  border: 1px solid var(--rev-border);
  border-radius: 8px;
  background: var(--rev-paper);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.04);
}

.identity-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.identity-content h1 {
  margin: 0 0 0.75rem;
  color: var(--rev-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.identity-content h2,
.identity-content h3 {
  color: var(--rev-slate);
  font-weight: 800;
}

.identity-content p {
  max-width: 36rem;
  margin: 0.75rem 0;
  color: var(--rev-muted);
  line-height: 1.65;
}

.identity-content form {
  display: grid;
  gap: 1rem;
  width: min(100%, 420px);
  margin-top: 1.5rem;
}

.identity-content form > div:not(.text-danger) {
  display: grid;
  gap: 0.42rem;
}

.identity-content label {
  color: #374151;
  font-size: 0.88rem;
  font-weight: 850;
}

.identity-content input[type="email"],
.identity-content input[type="password"],
.identity-content input[type="text"],
.identity-content input:not([type]) {
  width: 100%;
  min-height: 46px;
  padding: 0 0.88rem;
  border: 1px solid var(--rev-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--rev-ink);
  font: inherit;
  font-weight: 700;
}

.identity-content input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
  accent-color: var(--rev-gold);
}

.identity-content input:focus {
  border-color: var(--rev-gold);
  box-shadow: 0 0 0 0.22rem rgba(200, 155, 60, 0.18);
  outline: none;
}

.identity-content button,
.identity-content .btn,
.identity-content a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border: 1px solid var(--rev-ink);
  border-radius: 10px;
  background: var(--rev-ink);
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
}

.identity-content button:hover,
.identity-content .btn:hover {
  background: #252525;
  color: #ffffff;
}

.identity-content .text-danger,
.identity-content [data-valmsg-for] {
  color: #b91c1c !important;
  font-size: 0.88rem;
  font-weight: 750;
}

.identity-content code {
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--rev-ink);
  padding: 0.12rem 0.35rem;
}

.login-page {
  width: min(100%, 430px);
}

.login-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--rev-gold-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-content .login-intro {
  margin-top: 0;
  color: var(--rev-muted);
  font-size: 1rem;
}

.identity-content .login-form {
  width: 100%;
}

.login-error.validation-summary-valid {
  display: none;
}

.login-error.validation-summary-errors {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--rev-error);
  font-weight: 800;
}

.login-error ul {
  margin: 0;
  padding-left: 1rem;
}

.login-field {
  display: grid;
  gap: 0.42rem;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-row a {
  font-size: 0.9rem;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--rev-muted);
  font-size: 0.9rem;
}

.login-check input[type="checkbox"] {
  margin: 0;
}

.login-create-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--rev-border);
  border-radius: 8px;
  background: #fafafa;
  color: var(--rev-muted);
}

.login-create-account span {
  color: var(--rev-muted);
}

.identity-visual {
  position: relative;
  min-height: 100%;
  background: #f5f6f8;
}

.identity-visual img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  display: block;
}

.identity-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(17, 17, 17, 0.24));
  pointer-events: none;
}

.identity-visual-copy {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 1;
  max-width: 520px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.identity-visual-copy p {
  margin: 0 0 0.45rem;
  color: var(--rev-gold-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-visual-copy h2 {
  margin: 0;
  color: var(--rev-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  line-height: 1.08;
}

.identity-visual-copy span {
  display: block;
  margin-top: 0.65rem;
  color: var(--rev-muted);
  line-height: 1.55;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  min-height: 54px;
  border-top: 1px solid var(--rev-border);
  background: rgba(255, 255, 255, 0.94);
  line-height: 54px;
}

@media (max-width: 900px) {
  .identity-card {
    grid-template-columns: 1fr;
  }

  .identity-visual {
    order: -1;
    min-height: 320px;
  }

  .identity-visual img {
    min-height: 320px;
    max-height: 360px;
  }

  .identity-content {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .identity-shell {
    width: calc(100% - 24px);
    margin: 18px auto 82px;
  }

  .identity-card {
    min-height: 0;
  }

  .identity-content {
    padding: 1.5rem;
  }

  .identity-visual-copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 1rem;
  }

  .login-row,
  .login-create-account {
    align-items: flex-start;
    flex-direction: column;
  }
}
