:root {
  --bg-page: #d9e8f1;
  --panel: #d3e8f6;
  --brand: #0669b4;
  --accent: #66c972;
  --text: #0b3a61;
  --card-border: #cfd7df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #efefef 0, #efefef 58px, var(--bg-page) 58px);
  color: var(--text);
}

.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 44px;
}

.screen-panel {
  border: 1px solid #b5cfdd;
  background: #cfe5f4;
  padding: 14px 18px 20px;
}

.top-url {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 16px;
  height: 32px;
  line-height: 32px;
  padding: 0 14px;
  font-size: 15px;
  color: #d33232;
  margin: 0 auto 12px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.brand-group {
  display: flex;
  gap: 14px;
}

.badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffe16b 0, #f3b116 35%, #005a92 36%, #003d66 100%);
  color: #ffe16b;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #004770;
}

h1 {
  margin: 8px 0 3px;
  font-size: 54px;
  letter-spacing: 1px;
  color: var(--brand);
  line-height: 1;
}

.subtitle {
  margin: 0;
  color: #0d6bb0;
  font-style: italic;
  font-size: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
}

.lang-switch a {
  text-decoration: none;
  color: #51657b;
}

.lang-switch a.active {
  color: #c61919;
}

.login-link {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

.logos-grid {
  margin: 18px auto 10px;
  max-width: 900px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.logo-card {
  min-height: 76px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(8, 33, 57, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  text-decoration: none;
  color: #1f3551;
  font-size: 24px;
  font-weight: 700;
}

.logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(8, 33, 57, 0.25);
}

.distribution {
  margin-top: 8px;
  text-align: center;
  color: var(--brand);
  font-size: 36px;
  font-weight: 700;
}

.login-wrap {
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ccdae7;
  box-shadow: 0 10px 24px rgba(15, 42, 71, 0.12);
  padding: 22px;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: #0d6bb0;
  text-decoration: none;
  font-weight: 700;
}

.login-panel h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.login-note {
  margin-top: 0;
  color: #50667a;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}

.login-form input {
  height: 38px;
  border: 1px solid #c8d3de;
  border-radius: 7px;
  padding: 0 10px;
}

.login-form button {
  margin-top: 4px;
  height: 42px;
  border: 0;
  background: #80a8c9;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  cursor: not-allowed;
}

@media (max-width: 920px) {
  h1 {
    font-size: 38px;
  }

  .subtitle {
    font-size: 16px;
  }

  .logos-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .logo-card {
    font-size: 19px;
  }

  .distribution {
    font-size: 28px;
  }
}

@media (max-width: 680px) {
  .header-row {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .logos-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .badge {
    width: 66px;
    height: 66px;
  }

  h1 {
    font-size: 32px;
  }

  .distribution {
    font-size: 24px;
  }
}
