* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  background: url('../media/bg__header.jpg') no-repeat center top fixed;
  background-size: cover;
}

a { text-decoration: none; }

.topbar {
  position: relative;
  z-index: 20;
  height: 46px;
  background: rgba(248, 250, 255, .80);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.topbar-inner {
  height: 46px;
  max-width: 1210px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: #3e3e3e;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .2px;
  min-width: 250px;
  line-height: 1;
}

.main-nav,
.auth-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav { flex: 1; justify-content: center; }
.auth-nav { min-width: 250px; justify-content: flex-end; }

.nav-btn,
.auth-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.nav-btn {
  color: #fff;
  background: rgba(58, 110, 155, .76);
  padding: 0 18px;
  min-width: 106px;
  border: 1px solid rgba(58,110,155,.15);
}

.nav-btn:nth-child(2) { min-width: 154px; }
.nav-btn:nth-child(3) { min-width: 108px; }
.nav-btn:nth-child(4) { min-width: 105px; }

.nav-btn:hover,
.auth-link.active,
.auth-link:hover {
  color: #111;
  background: rgba(255,255,255,.94);
}

.auth-link {
  color: #222;
  padding: 0 13px;
}

.auth-link.active {
  border: 1px solid rgba(255,255,255,.5);
}

.ico { font-weight: 700; opacity: .95; }

.page {
  min-height: calc(100vh - 46px);
}

.signin-area {
  width: 100%;
  padding-top: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signin-area h1 {
  margin: 0 0 28px 0;
  color: #2f2f2f;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255,255,255,.5);
}

.login-panel {
  width: 562px;
  border: 1px solid rgba(45, 184, 238, .24);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(248, 250, 255, .76);
  box-shadow: 0 5px 15px rgba(0,0,0,.14);
}

.panel-head {
  height: 58px;
  padding: 14px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(46, 124, 162, .44);
}

.panel-title {
  color: #333;
  font-size: 15px;
  line-height: 1.2;
}

.lang-select {
  width: 76px;
  height: 32px;
  padding: 4px 12px;
  border-radius: 3px;
  color: #fff;
  background: rgba(67, 145, 191, .54);
  border: 1px solid rgba(55, 95, 115, .62);
  outline: none;
}

.panel-body {
  padding: 20px 20px 0 20px;
  background: rgba(248, 250, 255, .76);
}

.form-group { margin-bottom: 15px; }

label {
  display: inline-block;
  margin-bottom: 5px;
  color: #242424;
  font-size: 15px;
}

.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 13px;
  border-radius: 2px;
  outline: none;
  color: #111;
  background-color: rgba(255,255,255,.38);
  border: 1px solid rgba(55, 95, 115, .62);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.035);
}

select.form-control,
.lang-select {
  color: #fff;
  background-color: rgba(67, 145, 191, .54);
}

.form-control::placeholder { color: rgba(0,0,0,.55); }
.form-control:focus { border-color: rgba(55, 95, 115, .82); background-color: rgba(255,255,255,.46); }
select.form-control:focus, .lang-select:focus { background-color: rgba(67, 145, 191, .54); }
.form-control option,
.lang-select option { background: #1b1b1b; color: #ddd; }

.actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 2px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  cursor: pointer;
}

.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #26a62e;
}

.login-btn {
  min-width: 112px;
  min-height: 42px;
  padding: 8px 24px;
  border: 0;
  border-radius: 2px;
  color: #000;
  background: rgba(255,255,255,.46);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.login-btn:hover { background: rgba(255,255,255,.7); }
.login-icon { display: inline-block; margin-right: 10px; font-size: 20px; vertical-align: -1px; }

.stub-message {
  display: none;
  margin: 0 0 14px 0;
  padding: 8px 10px;
  border-radius: 2px;
  color: #1b3d48;
  background: rgba(255,255,255,.55);
  border-left: 3px solid rgba(46, 124, 162, .55);
  font-size: 14px;
}

.stub-message.show { display: block; }

.panel-footer {
  min-height: 54px;
  padding: 16px 20px 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(46, 124, 162, .44);
}

.panel-footer a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.panel-footer a span { margin-right: 6px; }

@media (max-width: 900px) {
  .topbar { height: auto; min-height: 46px; }
  .topbar-inner { height: auto; min-height: 46px; padding: 6px 12px; flex-wrap: wrap; justify-content: center; }
  .brand, .auth-nav { min-width: auto; }
  .main-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .signin-area { padding: 34px 12px 0; }
  .login-panel { width: min(562px, 100%); }
}

@media (max-width: 560px) {
  .nav-btn { min-width: auto !important; padding: 0 10px; }
  .auth-link { padding: 0 9px; }
  .panel-head { height: auto; gap: 12px; align-items: flex-start; }
  .actions-row { align-items: stretch; flex-direction: column; gap: 14px; padding-bottom: 16px; }
  .login-btn { width: 100%; }
  .panel-footer { flex-direction: column; gap: 8px; }
}
