@import url(https://fonts.googleapis.com/css?family=Raleway:700,800);

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Raleway', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #6ED0F6;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 20px;
  box-sizing: border-box;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

:focus { outline: none; }
::-webkit-input-placeholder { color: #DEDFDF; }
::-moz-placeholder { color: #DEDFDF; }
:-moz-placeholder { color: #DEDFDF; }
::-ms-input-placeholder { color: #DEDFDF; }

#wrapper, label, #arrow, button span, #message-area { transition: all .5s cubic-bezier(.6,0,.4,1); }

#wrapper { overflow: hidden; }

#signin:checked ~ #wrapper { height: 178px; }
#signin:checked ~ #wrapper #arrow { left: 32px; }
#signin:checked ~ button span { transform: translate3d(0,-72px,0); }
#signin:checked ~ #wrapper #pass { display: block; }

#reset:checked ~ #wrapper { height: 94px; }
#reset:checked ~ #wrapper #arrow { left: 137px; }
#reset:checked ~ button span { transform: translate3d(0,0,0); }
#reset:checked ~ #wrapper #pass { display: none; }

form {
  width: 450px;
  /* Removed background, padding, border-radius, box-shadow from here */
}

input[type=radio] { display: none; }

label {
  cursor: pointer;
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  opacity: .5;
  margin-bottom: 30px;
  text-transform: uppercase;
}
label:hover {
  transition: all .3s cubic-bezier(.6,0,.4,1);
  opacity: 1;
}
label[for="signin"] { margin-right: 20px; }
input[type=radio]:checked + label { opacity: 1; }

input[type=text],
input[type=password] {
  background: #fff;
  border: none;
  border-radius: 8px;
  font-size: 27px;
  font-family: 'Raleway', sans-serif;
  color: #333;
  height: 72px;
  width: 100%;
  margin-bottom: 10px;
  opacity: 1;
  text-indent: 20px;
  transition: all .2s ease-in-out;
  box-sizing: border-box;
  display: block;
}

button {
  background: #079BCF;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 27px;
  height: 72px;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden; /* Keep for spinner clipping if it ever overflows */
  transition: background-color .3s cubic-bezier(.6,0,.4,1); /* Only transition background for hover */
  position: relative;
}
button span {
  display: block; /* Default display */
  line-height: 72px;
  position: relative;
  transform: translate3d(0,0,0);
  /* Removed transition from span to prevent delay in hiding */
}
button:hover {
  background: #007BA5;
}
button:disabled {
    background: #ccc !important; /* Use !important to override other background styles if needed */
    cursor: not-allowed;
}

#arrow {
  height: 0;
  width: 0;
  border-bottom: 10px solid #fff;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  position: relative;
  left: 32px;
  margin-bottom: 10px;
}

#message-area {
  color: #ff4d4d;
  text-align: center;
  min-height: 20px;
  line-height: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: normal;
}

#message-area.success {
    color: #b2ffb2; /* Or a brighter green like #7CFC00 if contrast allows */
}

/* Hint CSS removed */

.page-footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  opacity: 0.8;
  width: 100%;
  box-sizing: border-box;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 20px;
  height: 20px;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}