/* FONTS */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/OpenSans.woff2") format("woff2");
}

/* HTML RESET */

html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ol, ul { margin: 0; padding: 0; font-weight: normal; }
ol, ul { list-style: none; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; outline: 0; }
a:active, a:hover, a:focus{ text-decoration: underline; }
input, button { border-radius: 0.45rem; outline: 0; }

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Disable Autocomplete background in Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  transition: background-color 5000s ease-in-out 0s;
}

input:focus,
button:focus, button:hover, button:active {
  box-shadow: 0 0 0 2px rgb(100,169,255);
}

/* Inputs other than type Submit */
input:not([type='submit']) {
  border: none;
  padding: 0.75em;
  width: 100%;
  max-width: 20rem;
  font-size: 1rem;
}

/* Submit Buttons */
input[type='submit'],
button {
  display: inline-flex;
  align-items: center;
  border: none;
  padding: 0.75em 1.25em;
  outline: none;
  transition: all 300ms cubic-bezier(0.48, 0, 0.12, 1);
}

button span:first-child {
  margin-right: 0.375rem;
}

/* Global */

html {
  background-color: #003c71; 
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

body {
  font-family: "Open Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  background: #0065BD;
  color: white;
}

.container {
  position: relative;
  padding: 0 1.25rem;
  z-index: 1;
}

p {
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

input[type='submit'],
button {
  background: transparent;
  color: white;
  font-size: 0.875rem;
  margin: 0.25rem 0;
  border: 2px solid white;
  cursor: pointer;
}

button svg path {
  fill: white;
}

button:hover svg path {
  fill: white;
}

input[type='submit']:hover,
input[type='submit']:active,
input[type='submit']:focus,
button:hover,
button:active,
button:focus {
  background: #00549e;
  border-color: #00549e;
  color: white;
  box-shadow: 0 0 0 2px rgb(100,169,255);
}

button.disabled {
  opacity: 0.20;
  cursor: not-allowed;
}


.content {
  background: rgb(0,60,113);
  background: linear-gradient(180deg, rgba(0,60,113,1) 0%, rgba(7,31,53,1) 100%);
  color: white;
  min-height: calc(100vh);
  padding: 2rem 0;
}

.content a {
  margin-bottom: 0.25rem;
  color: white;
}

@media (min-width: 768px) {
  .content {
    display: flex;
    align-items: center;
    z-index: 1;
  }
}

/*  CSUSB Icon */
.csusb_icon {
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .csusb_icon svg {
    width: 12rem;
    height: 5rem;
  }
  
  .container {
    position: relative;
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    z-index: 1;
  }
}

.csusb_icon svg path {
  fill: #fff;
}

/* Footer */

footer {
  padding: 1rem;
}

footer a {
  color: white;
  font-size: 0.75rem;
}

footer nav .menu {
  text-align: center;
}

footer nav .menu > li {
  display: inline-block;
  margin: 0 0.5rem;
}


/* Login Form */

.form_wrap {
  padding: 1.25rem 0;
  text-align: center;
  color: white;
  width: 100%;
}

.form_item, h2 {
    margin-bottom: 0.75rem;
}

.help_links {
  display: block;
  max-width: 22rem;
  margin: 2rem auto 0;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 0;
}

.help_links li {
  display: inline-block;
}

.help_links a {
  display: block;
  padding: 0.35rem 0.5rem 0.4rem;
  border-radius: 0.35rem;
  margin: 0 0.15rem;
  color: white;
  transition: box-shadow 300ms cubic-bezier(0.48, 0, 0.12, 1);
}

@media (min-width: 24rem) {
  .help_links a {
    display: inline-block;
  }
}

.help_links a:active,
.help_links a:hover,
.help_links a:focus {
  text-decoration: none;
  -webkit-box-shadow: 0 0 0 1px white;
  box-shadow: 0 0 0 1px white;
}

/* Spacing for login error */
.login_error {
  font-size: 0.875rem;
  padding: 0.5rem 0 1rem;
}

/* Duo Panel */
.panel iframe {
  border-radius: 0.5rem;
}

.panel .panel-heading {
  margin-bottom: 1rem;
}

/* Alert */

.alert {
  text-align: center;
}

.alert--icon {
  margin-bottom: 1rem;
}

.alert--content {
  font-size: 0.875rem;
}
