* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family:
    sans-serif;

  color: #333;
  background: #f5f6f8;
}


/* ========================================
   Container
   ======================================== */

.container {
  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;
}


/* ========================================
   Login Panel
   ======================================== */

.login-panel {
  width: 100%;
  max-width: 420px;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  overflow: hidden;
}


/* ========================================
   Panel Heading
   ======================================== */

.panel-heading {
  padding: 16px 20px;

  background: #1B348A;
  border-bottom: 1px solid #eafdff;
}

.panel-title {
  margin: 0;

  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;

  text-align: center;
}


/* ========================================
   Panel Body
   ======================================== */

.panel-body {
  padding: 35px 40px 40px;
}


/* ========================================
   Logo
   ======================================== */

.logo {
  margin: 0 0 30px;

  text-align: center;
}

.logo img {
  display: inline-block;

  width: 65%;
  height: 65%;

  vertical-align: middle;
}


/* ========================================
   Form
   ======================================== */

form {
  width: 100%;
}


/* ========================================
   Input
   ======================================== */

.form-control {
  display: block;

  width: 100%;
  height: 46px;

  margin: 0 0 15px;
  padding: 10px 14px;

  color: #333;
  font-size: 16px;
  line-height: 1.5;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #999;
}

.form-control:focus {
  border-color: #66afe9;

  box-shadow:
    0 0 0 3px rgba(102, 175, 233, 0.2);
}


/* ========================================
   Login Button
   ======================================== */

button[type="submit"] {
  display: block;

  width: 100%;
  min-height: 46px;

  margin-top: 20px;
  padding: 10px 20px;

  color: #fff;
  background: #1B348A;

  border: 1px solid #1B348A;
  border-radius: 4px;

  font-family: inherit;
  font-size: 16px;
  font-weight: 600;

  line-height: 1.5;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  background: #2545B0;
  border-color: #1B348A;
}

button[type="submit"]:focus {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(51, 122, 183, 0.25);
}

button[type="submit"]:active {
  background: #2545B0;
  border-color: #1B348A;
}


/* ========================================
   Login Error
   ======================================== */
.login-error {
  position: relative;

  margin-bottom: 20px;
  padding: 12px 40px 12px 15px;

  color: #a94442;
  background: #f2dede;

  border: 1px solid #ebccd1;
  border-radius: 4px;

  font-size: 14px;
  line-height: 1.5;
}

.login-error-message {
  display: block;
  white-space: pre-line;
}

.login-error-close {
  position: absolute;

  top: 7px;
  right: 8px;

  width: 28px;
  height: 28px;

  padding: 0;

  color: #a94442;
  background: transparent;

  border: 0;

  font-size: 22px;
  font-weight: normal;
  line-height: 28px;

  cursor: pointer;

  opacity: 0.7;
}

.login-error-close:hover {
  opacity: 1;
}

.login-error-close:focus {
  outline: none;

  box-shadow: 0 0 0 2px rgba(169, 68, 66, 0.2);
}

/* ========================================
   Login Info
   ======================================== */
.login-Info {
  position: relative;

  margin-bottom: 20px;
  padding: 12px 40px 12px 15px;

  color: #1a348a;
  background: #eafdff;

  border: 1px solid #aee9eb;
  border-radius: 4px;

  font-size: 14px;
  line-height: 1.5;
}

.login-Info-message {
  display: block;
  white-space: pre-line;
}

/* ========================================
   Link
   ======================================== */
.login-links {
  justify-content: center;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  display: flex;
  margin-top: 8px;
  font-size: 14px;

}
.login-url {
  color: blue;
  text-decoration: none;
}

/* ========================================
   Tablet
   ======================================== */

@media screen and (max-width: 600px) {
  .container {
    padding: 30px 15px;
  }

  .login-panel {
    max-width: 420px;
  }

  .panel-body {
    padding: 30px;
  }
}


/* ========================================
   Smartphone
   ======================================== */

@media screen and (max-width: 480px) {
  .container {
    align-items: flex-start;

    padding: 20px 12px;
  }

  .login-panel {
    border-radius: 5px;
  }

  .panel-heading {
    padding: 14px 15px;
  }

  .panel-title {
    font-size: 16px;
  }

  .panel-body {
    padding: 25px 20px 30px;
  }

  .logo {
    margin-bottom: 25px;
  }

  .form-control {
    height: 44px;
    font-size: 16px;
  }

  button[type="submit"] {
    min-height: 44px;
  }
}


/* ========================================
   Very Small Smartphone
   ======================================== */

@media screen and (max-width: 360px) {
  .container {
    padding: 15px 10px;
  }

  .panel-body {
    padding: 20px 15px 25px;
  }

  .panel-title {
    font-size: 15px;
  }
}