/*--- show/hide ----*/

article {
    margin-bottom: 3rem;
    position: relative;
    *zoom: 1;
}

article:before, article:after {
    content: "";
    display: table;
}

article:after { clear: both }

article section:first-of-type {
    float: right;
    width: 100px;
}

article section:last-of-type {
    display: none;
    visibility: hidden;
}

input[type=checkbox] {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

[for="sign-in"] {
    position: absolute;
    top: 0;
    right: 10px;
    width: 300px;
    color: #fff;
    text-align: center;
    padding: .65rem;
    background: #025568;
    border: 1px solid #013f50;
    border-radius: 2px;
    box-shadow: 0px 1px 1px #555;
    text-shadow: 0 1px 1px #000;
}

[for="sign-in"]:hover {
    background: #013f50;
    color: #fff;
}

[for="sign-in"] span:last-of-type {
    display: none;
    visibility: hidden;
}

input[type=checkbox]:checked ~ section {
    display: block;
    visibility: visible;
    width: 300px;
    float: right;
}

input[type=checkbox]:checked ~ [for="sign-in"] span:first-of-type {
    display: none;
    visibility: hidden;
}

input[type=checkbox]:checked ~ [for="sign-in"] span:last-of-type {
    display: block;
    visibility: visible;
}

/*--- main styles---*/
.login-area {
  position: absolute;
  z-index: 99;
  top: -20px;
}

.login {
  background-color: #0e6178;
  width: 300px;
  padding: 10px 20px;
  border-radius: 2px;
  border:1px solid #013f50;
  border-top: none;
  box-shadow: 0 1px 1px #333;
  position: absolute;
  right: 10px;
  top: 21px;
  z-index: 99;
}

.login input, .login button {
  height: 27px;
  width: 100%;
  font-size: .95em;
  text-shadow: none;
  border-radius: 2px;
  box-shadow: 0 1px 1px #333;
}

.login input {
  background-color: #eee;
  color: #333;
  padding: 5px;
  border: 1px solid #0e6178;
  margin-top: 4px;
  border-radius: 3px;
}

::-webkit-input-placeholder {
   color: #333;
   opacity: .5;
   text-shadow: none;
}

:-moz-placeholder { /* Firefox 18- */
   color: #333;  
   opacity: .5;
   text-shadow: none;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #333;  
   opacity: .5;
   text-shadow: none;
}

:-ms-input-placeholder {  
   color: #333;  
   opacity: .5;
   text-shadow: none;
}

.login button {
  border: none;
  color: #013f50;
  margin-top: 10px;
  background-color: #fdc77b;
  box-shadow: 0 1px 1px #333;
  cursor:pointer;
}

.login button:hover {
  opacity: .85;
}

button.register {
  background-color: #bbd4d6;
}

.forgot {
  margin-top: 10px;
}

.forgot a {
  color: #4d99ae;
  font-size: .75em;
}

/* override media queries */
@media screen and (max-width:800px) {

  input[type=checkbox]:checked ~ section {
    width: 100%;
}

.login {
  right: 0;
  top: 70px;
}

  article {
  margin-bottom: 4rem;
}

}
