* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 13px;
}

.assist {
  text-align: right;
  padding: 6px 16px 2px;
  font-size: 11px;
  color: #444;
}

.header {
  background: #ffffff;
  padding: 8px 14px 6px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ministry-logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
}

.marianne {
  width: 38px;
  height: 50px;
  display: block;
  flex-shrink: 0;
}

.ministry-text {
  line-height: 1.05;
}

.motto {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  color: #111;
}

.ministry-name {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: #111;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.telepac-word {
  font-size: 54px;
  line-height: 0.88;
  font-weight: 800;
  color: #27a344;
  letter-spacing: -1.2px;
}

.welcome {
  font-size: 16.5px;
  color: #1d6a99;
  line-height: 1.2;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  background: #ffffff;
  padding: 0 8px 0 14px;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15px;
  line-height: 1.15;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.tab.home {
  width: 36px;
  min-width: 36px;
  padding: 0;
  background: #5d5c55;
}

.tab.orange { background: #d47822; }
.tab.green { background: #2b8a38; }
.tab.blue { background: #1e73ad; }
.tab.magenta { background: #c42878; }
.tab.red { background: #c4333a; }
.tab.lightblue { background: #4ea3c7; }
.tab.mustard { background: #b08a2b; }

.page {
  padding: 20px 16px 48px 14px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.login-panel {
  background: #e6e6dc;
  border: 1px solid #cfcfc4;
  padding: 14px 14px 16px;
}

.login-panel h2 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
}

.required {
  color: #b42323;
  font-size: 11px;
  margin-bottom: 14px;
}

.info-trigger {
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  display: block;
  text-align: inherit;
}

[data-dead] {
  cursor: pointer;
}

.plain-panel,
.plain-panel * {
  background: #fff !important;
  color: #000 !important;
  font-family: Times, "Times New Roman", serif !important;
  font-weight: normal;
  border: 0;
  box-shadow: none;
}

.plain-panel {
  padding: 12px 16px 24px;
}

.plain-panel h1,
.plain-panel h2,
.plain-panel h3 {
  font-weight: bold;
}

.login-panel label {
  display: block;
  margin: 10px 0 1px;
  font-size: 12px;
  color: #222;
}

.login-panel small {
  display: block;
  font-size: 10px;
  color: #555;
  margin-bottom: 4px;
}

.login-panel input {
  display: block;
  width: 100%;
  height: 26px;
  border: 1px solid #8f8f88;
  border-radius: 2px;
  background: #fff;
  padding: 3px 5px;
  font-size: 13px;
  font-family: inherit;
}

.login-panel input:focus {
  outline: 1px solid #1e73ad;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  background: #1e73ad;
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 5px 12px 5px 8px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.connection .play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.security a:hover {
  text-decoration: underline;
}

.security {
  padding: 16px 4px 8px;
  color: #a12a22;
  font-size: 11px;
  line-height: 1.38;
}

.security h3 {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  color: #d01818;
}

.security p {
  margin: 0 0 9px;
}

.security ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.security li {
  margin-bottom: 4px;
}

.security a {
  color: #1a6fa3;
  text-decoration: none;
  word-break: break-all;
}

.access {
  margin-top: 18px;
  color: #3b4ea0;
  font-size: 12px;
}

.access a {
  color: #3b4ea0;
}

.left-column {
  padding-right: 18px;
}

.right-column {
  background: #ffffff;
  border-left: 1px solid #b7b7b0;
  min-height: 100%;
  padding: 12px 22px 28px 24px;
}

.notice {
  border-top: 1px solid #6d6d6d;
  padding: 10px 0 14px;
  margin: 0;
}

.notice + .notice {
  margin-top: 10px;
}

.notice.last {
  border-bottom: 1px solid #6d6d6d;
  margin-bottom: 18px;
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.15;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
}

.notice ul,
.bottom-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #111;
}

.notice li,
.bottom-list li {
  margin-bottom: 6px;
}

.bottom-title {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 8px;
  color: #111;
}

.support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 16px;
}

.support-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.ftap-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ftap-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  background: linear-gradient(90deg, #002395 0 33%, #fff 33% 66%, #ed2939 66%);
  color: #111;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid #bbb;
  padding: 0 8px;
}

.ftap-text {
  font-size: 11px;
  line-height: 1.25;
  color: #222;
}

.support-right {
  margin: 0;
  max-width: 280px;
  font-size: 12px;
  line-height: 1.35;
  color: #333;
}

.site-footer {
  background: #3a3a3a;
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
}

#validation {
  min-height: 14px;
  color: #9b3131;
  font-size: 11px;
  margin: 6px 0 0;
}

.thank-you-page .page {
  display: block;
  max-width: 720px;
}

.thank-you-card {
  background: #e6e6dc;
  border: 1px solid #cfcfc4;
  padding: 28px 24px;
}

.thank-you-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.thank-you-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  background: #1e73ad;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 820px) {
  .header-inner,
  .brand-block {
    flex-wrap: wrap;
    gap: 12px;
  }

  .telepac-word {
    font-size: 40px;
  }

  .welcome {
    font-size: 14px;
  }

  .tabs {
    overflow-x: auto;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .left-column {
    padding-right: 0;
  }

  .right-column {
    border-left: 0;
    padding: 12px 12px 20px;
  }

  .assist {
    text-align: left;
    font-size: 10px;
  }

  .support-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
