:root {
  --page-bg: #111018;
  --surface: #f7f7fb;
  --surface-muted: #ecebf3;
  --text: #17151f;
  --text-muted: #656172;
  --line: #d9d7e3;
  --field: #ffffff;
  --cyan: #47cfe2;
  --blue: #1e73be;
  --violet: #8f4ce5;
  --pink: #d24fa1;
  --coral: #ff5969;
  --success: #247f55;
  --danger: #b3263d;
  --focus: #1e73be;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    linear-gradient(135deg, rgba(71, 207, 226, 0.12), transparent 32%),
    linear-gradient(220deg, rgba(255, 89, 105, 0.14), transparent 38%),
    var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.auth-frame {
  display: grid;
  width: min(100%, 1120px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 440px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: grid;
  align-content: center;
  min-height: 640px;
  padding: 56px;
  background:
    linear-gradient(145deg, rgba(30, 115, 190, 0.2), rgba(255, 255, 255, 0)),
    #181522;
  color: #ffffff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #171320;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-tagline {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.brand-title {
  max-width: 560px;
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
}

.brand-strip {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 42px;
}

.brand-strip span {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.brand-strip span:nth-child(1) {
  background: var(--violet);
}

.brand-strip span:nth-child(2) {
  background: var(--cyan);
}

.brand-strip span:nth-child(3) {
  background: var(--pink);
}

.brand-strip span:nth-child(4) {
  background: var(--coral);
}

.auth-panel {
  display: flex;
  align-items: center;
  padding: 44px;
  background: var(--surface);
}

.auth-card {
  width: 100%;
}

.auth-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-copy {
  margin: 12px 0 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.field-control {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transform: translateY(-50%);
}

.field-icon svg,
.button-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.field-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  outline: none;
  padding: 12px 14px 12px 44px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(30, 115, 190, 0.14);
}

.field-input::placeholder {
  color: #8a8796;
}

.form-alert {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.form-alert[hidden] {
  display: none;
}

.form-alert.error {
  border-color: rgba(179, 38, 61, 0.22);
  background: rgba(179, 38, 61, 0.08);
  color: var(--danger);
}

.form-alert.success {
  border-color: rgba(36, 127, 85, 0.24);
  background: rgba(36, 127, 85, 0.08);
  color: var(--success);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  cursor: pointer;
  gap: 10px;
  padding: 13px 18px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  background: #262231;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .auth-frame {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 32px;
  }

  .brand-title {
    font-size: 32px;
  }

  .auth-panel {
    padding: 32px;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 16px;
  }

  .auth-brand,
  .auth-panel {
    padding: 24px;
  }

  .brand-lockup {
    margin-bottom: 28px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-title {
    font-size: 28px;
  }

  .auth-title {
    font-size: 28px;
  }
}
