
* {
    font-family: 'Noto Sans TC', 'Roboto', 'sans-serif';
}

body {
    background-color: #f6f7ff;
    margin-top: 2%;
}

main.card {
    background-color: #fff;
    max-width: 444px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(151, 151, 151, 0.4);
    border-radius: 5px;
    padding: 40px 50px 0;
    text-align: center;
}

.checkbox-label {
    width: 160%;
    padding-left: 10%;
}

.checkbox {
    display: flex;
    align-items: baseline;
    height: 56px;
}

img.logo {
    width: 60%;
    flex-direction: column;
    vertical-align: top;
}

.card-body {
    margin: 50px 30px 30px;
}

.card-body h2 {
    font-weight: 500;
    margin-bottom: 30px;
}

.form-row {
    position: relative;
    margin: 40px 0 20px;
}

@keyframes input-label-focused {
  from {color: black; transform: translate(10px, 13px); font-size: 1rem; }
  to {color: #517DF6; transform: translate(0.9375rem, -0.75rem); font-size: 0.75rem; }
}

label.input-label {
    z-index: 1;
    color: black;
    transform: translate(10px, 13px);
    transform-origin: top left;
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    background: #fff;
    padding: 2px 10px;
    font-size: 1rem;
}

.form-row.focused label.input-label {
    animation-name: input-label-focused;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

input {
    box-shadow: none;
    padding: 12px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    cursor: text;
    border: 2px solid #517DF6;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 1rem;
}

.form-row.prefilled input {
    border: 1px solid black;
    background: white;
    color: black;
}

.hidden {
    display: none;
}

/* If there is a prefilled row, directly move the label */
.form-row.prefilled label.input-label {
    color: black; transform: translate(0.9375rem, -0.75rem); font-size: 0.75rem;
}

/* Show password is a checkbox for which the visible part is a label so that it's an image*/
input[type=checkbox].show-password {
    display:none;
}

input[type=checkbox].show-password,
input[type=checkbox].show-password + label {
    position: absolute;
    right: 12px;
    top: 15px;
    height: 24px;
    width: 24px;
    cursor: pointer;
    z-index: 1000;
}

input[type=checkbox] + label{
    background:url("../img/visibility-24px.0c489e2e35ba.svg") no-repeat;
    display:inline-block;
    padding: 0 0 0 0;
}

input[type=checkbox]{
    height: 15px;
}

input[type=checkbox]:checked + label{
    background:url("../img/visibility_off-24px.70ec06525dae.svg") no-repeat;
}

.card-body button.main-action {
    width: 100%;
}

button.main-action {
    color: #fff;
    background-color: #517DF6;
    border: 0;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 1.2rem;
    border-radius: 4px;
    margin: 40px 0 10px;
    transition-duration: 0.2s;
}

button.main-action:hover {
    background-color: #2160F4;
    cursor: pointer;
}

button.main-action.disabled {
    background-color: #2160F4;
    color: #2160F4; /* Same as background to make it invisible*/
}

button.main-action.disabled:hover {
    cursor: progress;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

div.spinner-container {
    position: relative;
    width: 0;
    height: 0;
    margin: auto;
}

div.spinner {
    display: none;
    position: absolute;
    top: 50px;
    left: -12px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top: 4px solid #195ca4;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

div.spinner.visible {
    display: initial;
}

a.muted {
    color: #517DF6;
    text-decoration: none;
}

a.muted:hover {
    text-decoration: underline;
}

.card-body img.illustration {
    position: absolute;
    display: inline;
    bottom: -1.55rem;
    right: 0;
    width: 400px;
    z-index: -1;
}

@media screen and (max-width: 959px) {
    .card-body img.illustration {
        display: none;
    }
}

/* Footer at bottom */
#page-container {
    text-align: center;
    position: relative;
    min-height: calc(100vh - 4.5rem);
    margin-bottom: 2rem;
}

footer {
    position: absolute;
    left: 0;
    bottom: -1.55rem;
    width: 100%;
    color: rgba(0, 0, 0, 0.54);
    text-align: center;
    height: 1.55rem;
}

footer a {
    color: rgba(0, 0, 0, 0.54);
    text-decoration: none;
}

p.text-center {
    color: rgba(0, 0, 0, 0.6);
}

p.active-sync {
   color: rgba(0, 0, 0, 0.6);
   font-size: medium;
}

p.privacy-policy {
   color: rgba(0, 0, 0, 0.6);
   font-size: small;
   margin-top: -1rem;
}

