* {
  box-sizing: border-box;
}
html,
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  line-height: 1.42857143;
  color: #333;
  background-color: #eee;
}
body,
input {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}
.modal {
  overflow: hidden;
  box-shadow: 0 5px 15px #00000080;
  width: 300px;
  background-color: #fff;
  border-radius: 6px;
  margin: 30px auto;
}
.content,
.header {
  padding: 15px;
}
.header {
  font-size: 18px;
}
.modal input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px #00000013;
}
.modal input:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px #00000013, 0 0 8px #66afe999;
}
.error {
  color: #b02a37;
  background-color: #f8d7da;
  border: 1px #f4c2c7 solid;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.control-group {
  margin-bottom: 15px;
}
.control-group:last-child {
  margin-bottom: 0;
}
.header {
  border-bottom: 1px #ccc solid;
}
.footer {
  padding: 0 15px 15px 15px;
  text-align: right;
}
label {
  display: block;
  margin-bottom: 5px;
}
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-image: none;
  border: 1px solid #204d74;
  border-radius: 4px;
  color: #fff;
  background-color: #286090;
}
.btn:hover {
  background-color: #286090;
  border-color: #204d74;
}
.btn:active {
  background-color: #204d74;
  border-color: #122b40;
}
body.dark {
  background-color: #2f2f2f;
  color: #fff;
}
.dark .modal {
  background-color: #444;
}
.dark input[type="text"],
.dark input[type="password"] {
  color: #eee;
  background-color: #333;
  border: 1px solid #222;
  box-shadow: none;
}
.dark input[type="text"]:focus,
.dark input[type="password"]:focus {
  background-color: #272727;
}
.dark .header {
  border-bottom-color: #222;
}
.dark .error {
  color: #ea868f;
  background-color: #2c0b0e;
  border-color: #842029;
}
@media only screen and (max-width: 480px) {
  body {
    background-color: #fff;
  }
  body.dark {
    background-color: #111;
  }
  .modal,
  .dark .modal {
    width: auto;
    margin: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }
}
