/* BOLTSTEP Account Portal — Windows 98 Style */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #008080;
  background-image: url('desktop.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: Arial, 'MS Sans Serif', sans-serif;
  font-size: 13px;
  color: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hidden { display: none !important; }

/* ── Loading ── */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #008080;
  z-index: 100;
}

.win98-load-window {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 2px 2px 0 #000000;
  min-width: 300px;
}

.win98-load-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.loader-dot {
  width: 220px;
  height: 18px;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  position: relative;
  overflow: hidden;
}

.loader-dot::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: repeating-linear-gradient(
    90deg,
    #000080 0,
    #000080 10px,
    #1084d0 10px,
    #1084d0 12px
  );
  animation: win98bar 1.2s linear infinite;
}

@keyframes win98bar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Main container ── */
.main-container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Portal logo ── */
.portal-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portal-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

/* ── Benefit comparison panel ── */
.benefit-panel {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 2px 2px 0 #000000;
  padding: 12px;
}

.benefit-title {
  font-size: 13px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #808080;
}

.benefit-grid {
  display: flex;
  gap: 8px;
}

.benefit-col {
  flex: 1;
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  background: #ffffff;
}

.benefit-col-header {
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border-bottom: 1px solid #c0c0c0;
}

.benefit-col--login .benefit-col-header {
  background: #000080;
  color: #ffffff;
}

.benefit-col--anon .benefit-col-header {
  background: #808080;
  color: #ffffff;
}

.benefit-list {
  list-style: none;
  padding: 6px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.benefit-list li {
  font-size: 12px;
  color: #000000;
  padding-left: 10px;
  position: relative;
  line-height: 1.4;
}

.benefit-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #808080;
}

.benefit-locked {
  color: #808080 !important;
}

.benefit-note {
  font-size: 11px;
  color: #808080;
}

/* ── Win98 Window ── */
.win98-window {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 2px 2px 0 #000000;
  display: flex;
  flex-direction: column;
}

/* ── Title bar ── */
.win98-titlebar {
  background: linear-gradient(to right, #000080, #1084d0);
  display: flex;
  align-items: center;
  padding: 4px 4px 4px 8px;
  gap: 6px;
  user-select: none;
  min-height: 28px;
}

.win98-title-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win98-ctrl-group {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.win98-ctrl {
  width: 20px;
  height: 18px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  font-size: 9px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  line-height: 1;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #000000;
  flex-shrink: 0;
}

.win98-ctrl:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

/* ── Language toggle ── */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-family: Arial, 'MS Sans Serif', sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-toggle:active {
  background: rgba(0, 0, 0, 0.2);
}

/* ── Window body ── */
.win98-body {
  padding: 12px;
}

/* ── Auth card ── */
.auth-card {
  background: #c0c0c0;
  display: flex;
  flex-direction: column;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  align-items: flex-end;
  padding: 6px 6px 0;
  gap: 4px;
  background: #c0c0c0;
}

.auth-tab {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 transparent #ffffff;
  color: #000000;
  font-family: Arial, 'MS Sans Serif', sans-serif;
  font-size: 13px;
  font-weight: normal;
  padding: 5px 20px 7px;
  cursor: pointer;
  letter-spacing: 0;
  position: relative;
  bottom: -2px;
  z-index: 1;
  min-width: 90px;
  text-align: center;
}

.auth-tab:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

.auth-tab.active {
  font-weight: bold;
  border-bottom-color: #c0c0c0;
  z-index: 3;
  padding-top: 4px;
  background: #c0c0c0;
}

/* ── Panels ── */
.auth-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px 18px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  position: relative;
  z-index: 2;
  background: #c0c0c0;
}

.auth-panel.active { display: flex; }

.panel-desc {
  font-size: 13px;
  color: #000000;
  line-height: 1.6;
}

.panel-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

/* ── Form fields ── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 13px;
  font-weight: normal;
  color: #000000;
}

.field-hint {
  font-size: 11px;
  color: #808080;
}

.field-input {
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  padding: 6px 8px;
  outline: none;
  width: 100%;
  border-radius: 0;
  height: 32px;
}

.field-input:focus {
  outline: 1px dotted #000000;
  outline-offset: -3px;
}

.field-input::placeholder { color: #a0a0a0; }

/* ── Buttons ── */
.btn-primary,
.btn-danger,
.btn-delete,
.btn-oauth {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  color: #000000;
  font-family: Arial, 'MS Sans Serif', sans-serif;
  font-size: 13px;
  font-weight: normal;
  padding: 6px 16px;
  cursor: pointer;
  border-radius: 0;
  width: 100%;
  min-height: 30px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary { margin-top: 6px; }

.btn-delete {
  color: #800000;
  margin-top: 6px;
  font-size: 12px;
}

.btn-delete:disabled {
  color: #808080;
  cursor: not-allowed;
}

.btn-primary:hover,
.btn-danger:hover,
.btn-delete:hover,
.btn-oauth:hover {
  background: #d4d0c8;
}

.btn-primary:active,
.btn-danger:active,
.btn-delete:active,
.btn-oauth:active {
  border-color: #404040 #ffffff #ffffff #404040;
  box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #808080;
}

.btn-primary:disabled {
  color: #808080;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:disabled:active {
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
}

/* ── Divider ── */
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #808080;
  font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #808080;
  box-shadow: 0 1px 0 #ffffff;
}

/* ── Links ── */
.text-link {
  color: #000080;
  font-size: 13px;
  text-decoration: underline;
}

.text-link:hover { color: #0000cc; }

/* ── Account info ── */
.acct-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.acct-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
}

.acct-row:last-child {
  border-bottom: none;
}

.acct-label {
  font-size: 11px;
  font-weight: bold;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 88px;
  flex-shrink: 0;
}

.acct-value {
  font-size: 13px;
  color: #000000;
  word-break: break-all;
}

.acct-id {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #404040;
}

/* ── Auto login toggle ── */
.acct-row-setting {
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #c0c0c0;
}

.acct-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.acct-toggle-wrap input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.acct-toggle-track {
  display: block;
  width: 32px;
  height: 14px;
  background: #808080;
  border: 2px solid;
  border-color: #404040 #ffffff #ffffff #404040;
}

.acct-toggle-wrap input:checked + .acct-toggle-track {
  background: #000080;
}

/* ── Account action separator ── */
.acct-separator {
  height: 1px;
  background: #808080;
  box-shadow: 0 1px 0 #ffffff;
  margin: 2px 0;
}

/* ── Message ── */
.msg {
  font-size: 13px;
  text-align: left;
}

.msg:empty { display: none; }

.msg.msg-ok {
  padding: 8px 10px;
  background: #c0c0c0;
  color: #000080;
  border: 1px solid #808080;
  line-height: 1.5;
}

.msg.msg-error {
  padding: 8px 10px;
  background: #c0c0c0;
  color: #800000;
  border: 1px solid #808080;
  line-height: 1.5;
}

/* ── Status bar ── */
.win98-statusbar {
  background: #c0c0c0;
  border-top: 2px solid #808080;
  padding: 6px 8px;
  display: flex;
  gap: 6px;
}

.win98-status-cell {
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 5px 12px;
  flex: 1;
  font-size: 13px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.win98-status-cell a {
  color: #000080;
  text-decoration: underline;
}

.win98-status-cell a:hover {
  color: #0000cc;
}
