* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e5e7eb;
  --border-strong: #d6dce6;
  --text: #1f2937;
  --text-muted: #64748b;
  --primary: #1849a9;
  --primary-hover: #123a74;
  --primary-soft: #eef2ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.brand-point {
  color: #00e5ff;
}

.login-view,
.register-view,
.main-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

.login-view,
.register-view {
  display: flex;
  justify-content: center;
}

.login-view {
  align-items: center;
}

.register-view {
  align-items: flex-start;
  padding: 20px 0;
}

.login-container,
.register-container {
  width: 100%;
  max-width: 480px;
  padding: 28px 20px;
}

.login-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-logo {
  width: 120px;
  height: 120px;
  margin: 0 0 18px;
  object-fit: contain;
  display: block;
}

.login-title,
.register-title,
.main-shell-title,
.main-hero-title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: -0.03em;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.15;
}

.login-subtitle,
.register-subtitle,
.main-hero-desc {
  color: #475569;
  line-height: 1.5;
}

.login-subtitle {
  font-size: 15px;
  margin-bottom: 22px;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: #111827;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  box-shadow: none;
}

.gsi-material-button:hover {
  background: #f9fafb;
  border-color: #dbe1ea;
  transform: translateY(-1px);
}

.gsi-material-button:active {
  transform: translateY(0);
}

.gsi-material-button:disabled {
  cursor: default;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  width: 100%;
}

.gsi-material-button .gsi-material-button-icon svg {
  width: 22px;
  height: 22px;
}

.gsi-material-button .gsi-material-button-contents {
  font-weight: 600;
  font-size: 17px;
}

.gsi-material-button .gsi-material-button-state {
  opacity: 0;
}

.main-shell {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.main-shell-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 20px 12px;
}

.main-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-shell-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.main-shell-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.main-shell-title {
  font-size: 28px;
  line-height: 1.1;
  color: #0f172a;
}

.main-shell-content {
  flex: 1;
  padding: 8px 20px 112px;
}

.main-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.main-home-greeting {
  padding: 0 16px;
}

.main-hero-title {
  font-size: 28px;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 4px;
  font-weight: 700;
}

.main-home-greeting-name {
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
  margin: 0;
  font-weight: 600;
}

.main-hero-summary {
  display: grid;
  gap: 12px;
}

.main-home-view {
  display: grid;
  gap: 16px;
}

.main-home-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.profile-menu {
  display: grid;
  gap: 12px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-soft);
}

.profile-card-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.profile-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-card-right {
  flex: 0 0 auto;
  color: var(--text-muted);
}

.profile-card:hover {
  background: #fafafa;
}

.profile-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: #b91c1c;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.profile-logout-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: translateY(-1px);
}

.profile-logout-btn:active {
  transform: translateY(0);
}

.profile-logout-icon {
  font-size: 16px;
  line-height: 1;
}

.main-home-hero-card {
  display: block;
}

.main-home-rooms-card {
  display: block;
}

.main-home-hero,
.main-home-section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.weekday-filter {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.weekday-filter-btn {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 7px 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.weekday-filter-label {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
}

.weekday-filter-date {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
}

.weekday-filter-btn:hover {
  background: #fafafa;
  border-color: var(--border-strong);
}

.weekday-filter-btn.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.weekday-filter-btn[data-day="sun"] .weekday-filter-label,
.weekday-filter-btn[data-day="sun"] .weekday-filter-date {
  color: #dc2626;
}

.weekday-filter-btn[data-day="sat"] .weekday-filter-label,
.weekday-filter-btn[data-day="sat"] .weekday-filter-date {
  color: #2563eb;
}

.weekday-filter-btn[data-day="sun"].is-active,
.weekday-filter-btn[data-day="sat"].is-active {
  background: var(--surface);
}

.weekday-filter-btn[data-day="sun"].is-active {
  border-color: #fca5a5;
}

.weekday-filter-btn[data-day="sat"].is-active {
  border-color: #93c5fd;
}

.weekday-filter-btn.is-today .weekday-filter-date::after {
  content: '•';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  line-height: 1;
  color: inherit;
}

.room-list {
  display: grid;
  gap: 12px;
}

.room-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.room-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.room-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.room-card-route {
  font-size: 13px;
  color: var(--text-muted);
}

.room-tag {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.room-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 10px;
}

.room-day-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.room-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.room-empty {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-muted);
}

.room-empty strong {
  color: #0f172a;
}

.main-hero-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.main-hero-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.main-hero-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.create-room-fab {
  position: fixed;
  bottom: calc(94px + env(safe-area-inset-bottom));
  right: 16px;
  width: 120px;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(24, 73, 169, 0.3);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, width .18s ease, padding .18s ease, border-radius .18s ease, gap .18s ease;
  z-index: 15;
}

.create-room-fab i {
  flex: 0 0 18px;
  text-align: center;
}

.create-room-fab-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  max-width: 62px;
  opacity: 1;
  transform: translateX(0);
  transition: max-width .18s ease, opacity .14s ease, transform .18s ease;
}

.create-room-fab.is-collapsed {
  width: 52px;
  padding: 0;
  border-radius: 50%;
  gap: 0;
}

.create-room-fab.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}

.create-room-fab.is-collapsed .create-room-fab-label {
  max-width: 0;
  opacity: 0;
  transform: translateX(6px);
}

.create-room-fab:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(24, 73, 169, 0.4);
  transform: scale(1.05);
}

.create-room-fab:active {
  transform: scale(0.95);
}

.create-room-view {
  display: block;
  padding: 20px 16px;
}

.create-room-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 20px;
}

.create-room-section h3 {
  margin-bottom: 24px;
}

.create-room-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.seats-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}

.form-input:focus,
.seats-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-soft);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.date-picker-container {
  position: relative;
}

.date-picker-trigger {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.date-picker-trigger:hover {
  background: #fafafa;
  border-color: var(--border-strong);
}

.date-picker-trigger:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-soft);
}

.date-picker-trigger.is-active {
  border-color: var(--primary);
}

.date-picker-calendar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.date-picker-calendar.is-open {
  display: block;
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.date-picker-month {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.date-picker-nav {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color .15s ease;
}

.date-picker-nav:hover {
  color: var(--primary);
}

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.date-picker-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.date-picker-day:hover:not(.is-disabled) {
  background: #fafafa;
}

.date-picker-day.is-disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.date-picker-day.is-selected {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.date-picker-day.is-today {
  border-color: var(--primary);
}

.seats-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seats-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  flex-shrink: 0;
}

.seats-btn:hover {
  background: #fafafa;
  border-color: var(--border-strong);
}

.seats-btn:active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.seats-input {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #fafafa;
  border-color: var(--border-strong);
}

.bottom-nav {
  position: fixed;
  bottom: 8px;
  left: 12px;
  right: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.bottom-nav-item:hover {
  transform: translateY(-1px);
  color: var(--primary);
  background: #fafafa;
}

.bottom-nav-item.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.bottom-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.main-shell-view {
  animation: fadeSlideIn .18s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.register-subtitle {
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s ease, background-color .15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231849A9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.form-input optgroup {
  font-weight: 600;
  color: var(--primary);
}

select.form-input option {
  padding: 6px 12px;
  color: #333;
}

select.form-input option:checked {
  background-color: var(--primary);
  color: #ffffff;
}

.form-radio-group {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.civilian-option-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.civilian-option {
  display: block;
  cursor: pointer;
  position: relative;
}

.civilian-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.civilian-option-card {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.civilian-option-top {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.civilian-option-bottom {
  font-size: 12px;
  color: var(--text-muted);
}

.civilian-option:hover .civilian-option-card {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: #fafafa;
}

.civilian-option input:checked + .civilian-option-card {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.civilian-option input:focus-visible + .civilian-option-card {
  outline: 2px solid rgba(24, 73, 169, 0.2);
  outline-offset: 2px;
}

.aff-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  pointer-events: none;
  transition: max-height .3s ease, opacity .2s ease, transform .3s ease, margin-top .3s ease;
}

.aff-panel.is-active {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
  pointer-events: auto;
}

.aff-panel .form-group:last-child {
  margin-bottom: 0;
}

.aff-panel select.form-input {
  background-color: #ffffff;
}

.aff-panel select.form-input:hover {
  background-color: #fafafa;
}

.aff-panel select.form-input:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
}

.affiliation-segment {
  display: flex;
  gap: 12px;
  width: 100%;
}

.aff-seg-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.aff-seg-btn:hover {
  transform: translateY(-1px);
  background: #fafafa;
  border-color: var(--border-strong);
}

.aff-seg-btn .aff-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 18px;
}

.aff-seg-btn .aff-title {
  font-weight: 700;
  color: #111827;
}

.aff-seg-btn .aff-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.aff-seg-btn.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.form-hidden {
  display: none;
}

.form-button {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  transition: background-color .15s ease, transform .12s ease;
}

.form-button:hover {
  background: var(--primary-hover);
}

.form-button:active {
  transform: translateY(0);
}

.form-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.form-button-secondary {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}

.form-button-secondary:hover {
  background: #e5e7eb;
  border-color: #dbe1ea;
}

.form-button-secondary:active {
  background: #dbe1e8;
}

@media (max-width: 480px) {
  .login-container,
  .register-container {
    padding: 24px 18px;
  }

  .login-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
  }

  .login-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .login-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .main-shell-topbar {
    padding: 20px 16px 10px;
  }

  .main-shell-brand {
    gap: 10px;
  }

  .main-shell-logo {
    width: 40px;
    height: 40px;
  }

  .main-shell-content {
    padding: 8px 16px 108px;
  }

  .main-home-card {
    padding: 20px;
    border-radius: 18px;
  }

  .main-shell-title {
    font-size: 24px;
  }

  .main-hero-title {
    font-size: 22px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title {
    font-size: 16px;
  }

  .weekday-filter-btn {
    min-height: 48px;
    padding: 6px 2px;
    font-size: 10px;
  }

  .weekday-filter-label {
    font-size: 8px;
  }

  .weekday-filter-date {
    font-size: 13px;
  }


  .room-card {
    padding: 14px;
    border-radius: 14px;
  }

  .room-card-head {
    flex-direction: column;
  }

  .room-tag {
    align-self: flex-start;
  }

  .bottom-nav {
    bottom: 8px;
    left: 10px;
    right: 10px;
    margin: 0;
    border-radius: 16px;
  }

  .bottom-nav-item {
    min-height: 56px;
  }

  .register-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .register-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .civilian-option-group {
    grid-template-columns: 1fr;
  }

  .civilian-option-card {
    min-height: 76px;
  }

  .affiliation-segment {
    flex-direction: column;
  }

  .aff-seg-btn {
    padding: 14px;
  }
}

@media (min-width: 768px) {
  .login-container {
    padding: 60px 40px;
  }

  .login-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 50px;
  }

  .login-title {
    font-size: 36px;
  }

  .login-subtitle {
    font-size: 16px;
  }

  .register-container {
    padding: 40px 28px;
    margin-top: 20px;
  }

  .register-title {
    font-size: 28px;
  }

  .register-subtitle {
    font-size: 15px;
  }
}