:root {
  color-scheme: light;
  --blue-950: #031e35;
  --blue-800: #075c9e;
  --blue-600: #0879c9;
  --sky: #14a9e5;
  --white: #ffffff;
  --ink: #102a3b;
  --muted: #6b7f8d;
  --surface: rgba(255, 255, 255, .96);
  --line: #dce8ef;
  --danger: #b42318;
  --success: #16834a;
  --shadow: 0 22px 70px rgba(0, 32, 55, .24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(20,169,229,.85), transparent 34%),
    linear-gradient(145deg, var(--blue-950), var(--blue-600));
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.panel {
  width: min(1050px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(320px, 1.18fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  padding: 44px 34px;
  background:
    linear-gradient(rgba(3,30,53,.70), rgba(7,92,158,.92)),
    radial-gradient(circle at 30% 20%, var(--sky), transparent 32%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand img {
  width: 86px;
  height: 86px;
  border-radius: 25px;
}

.brand h1 {
  margin: 20px 0 10px;
  font-size: clamp(32px, 5vw, 50px);
}

.brand p {
  margin: 0;
  line-height: 1.6;
  opacity: .92;
}

.brand .foot {
  margin-top: 44px;
  font-size: 13px;
  opacity: .76;
}

.content {
  padding: 34px;
  overflow: auto;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: #eef6fb;
}

.tab {
  flex: 1;
  border: 0;
  border-radius: 11px;
  padding: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  background: white;
  color: var(--blue-800);
  box-shadow: 0 3px 12px rgba(7,92,158,.12);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

h2 {
  margin: 28px 0 6px;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 15px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(20,169,229,.14);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
  line-height: 1.45;
}

.check input {
  width: auto;
  margin-top: 3px;
}

.check a {
  color: var(--blue-800);
}

.primary,
.secondary {
  border: 0;
  border-radius: 13px;
  padding: 13px 18px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, var(--blue-800), var(--sky));
  color: white;
}

.secondary {
  background: #eef6fb;
  color: var(--blue-800);
}

.message {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.hidden {
  display: none !important;
}

.dashboard {
  width: min(980px, 100%);
  min-height: 620px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.user-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--sky));
  color: white;
  font-size: 21px;
  font-weight: 800;
}

.badge {
  display: inline-block;
  margin-left: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5f5ff;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 800;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.room {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.room strong {
  display: block;
  margin-bottom: 6px;
}

.room span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .panel {
    grid-template-columns: 1fr;
  }

  .brand {
    padding: 28px;
  }

  .brand .foot {
    display: none;
  }

  .content {
    padding: 24px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .rooms {
    grid-template-columns: 1fr;
  }
}
