/*
 * Classic sign-in theme, modelled on the OpenVPN Connect web UI that
 * https://vpn.nuronz.us/ serves: light grey page, one centred white card with a
 * soft shadow, plain labelled inputs and the blue Aristo button.
 *
 * Only the sign-in screens use this file. Everything after login keeps the
 * regular app.css shell. No JavaScript depends on anything here.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f9f9f9;
  color: #444;
  font: 16px/1.5 Helvetica, Arial, sans-serif;
}

#application {
  width: 408px;
  max-width: 100%;
  margin: 0 auto;
  padding: 58px 36px 36px;
}

/* ------------------------------------------------------------------ brand */
header { text-align: center; margin-bottom: 16px; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2d3a;
}

.brand-logo svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #1c4257;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1;
}

.brand-name em {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7d8b96;
  margin-left: 0;
}

/* ------------------------------------------------------------------- card */
#main {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 28px #c8c8c8;
  padding: 8px;
  min-height: 264px;
}

#login { padding: 8px 12px 20px; }

#login h1 {
  margin: 8px 2px 4px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: #2b3945;
}

#login .lede {
  margin: 0 2px 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #77838d;
}

/* ----------------------------------------------------------------- fields */
.form-field { margin: 0 0 16px; }

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #55606a;
}

.form-field input {
  display: block;
  width: 100%;
  padding: 7px 9px;
  font: 15px/1.4 Helvetica, Arial, sans-serif;
  color: #333;
  background: linear-gradient(#fff, #eee 1px, #fff 25px);
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0, 0, 0, .1);
}

.form-field input:hover,
.form-field input:focus {
  border-color: #c9c9c9;
  box-shadow: 0 0 8px rgba(0, 0, 0, .15);
  outline: none;
}

.otp-input {
  font-size: 19px;
  letter-spacing: .35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------- button (Aristo, as before) */
button,
a.button {
  display: block;
  width: 100%;
  margin: 0;
  padding: .42em 1em;
  font: 700 14px/1.6 "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  color: #1c4257;
  text-shadow: 0 1px 1px #fff;
  background: linear-gradient(#b9e0f5, #85b2cb);
  border: 1px solid #759bb1;
  border-top-color: #8ab0c6;
  border-bottom-color: #587e93;
  border-radius: .214em;
  cursor: pointer;
  overflow: hidden;
}

button:hover,
a.button:hover {
  box-shadow: 0 0 7px #53a6d5;
}

button:focus-visible,
a.button:focus-visible {
  outline: 2px solid #53a6d5;
  outline-offset: 2px;
}

button:active,
a.button:active {
  background: linear-gradient(#81afc8, #b7def4);
  border-color: #6e94a9;
  border-top-color: #567c91;
  border-bottom-color: #88aec4;
  box-shadow: none;
}

/* --------------------------------------------------------- messages/links */
.message.error {
  margin: 8px 2px 16px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.45;
  color: #b3261e;
  background: #fdf2f2;
  border: 1px solid #f3cdd0;
  border-radius: 4px;
}

.auth-alt {
  margin: 16px 2px 0;
  padding-top: 13px;
  border-top: 1px solid #eef1f3;
  font-size: 12px;
  line-height: 1.5;
  color: #7d8b96;
  text-align: center;
}

.spacer { height: 14px; margin: 0; }

a { color: #607890; }
a:hover { color: #036; }

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: #9aa6ae;
}

@media only screen and (max-width: 480px) {
  #application { padding: 36px 20px 28px; }
  #login { padding: 8px 8px 16px; }
}
