/* The sign-in screen.
 *
 * One card, one question at a time. Sized for a phone first - that is where
 * the people who give up on signing in are - and simply centred with a bit
 * more room on a desktop.
 *
 * The old screen set a fixed height of 500px on its box, which meant the
 * lost-password and register forms underneath it spilled out of the bottom.
 * Nothing here is given a height; the card is as tall as what it holds.
 */

.signin-page {
    padding: 24px 16px 64px;
}

.signin-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.signin-title {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #222222;
}

.signin-lead {
    margin: 0 0 22px;
    font-size: 14px;
    color: #777777;
}

/* ------------------------------------------------------------------ */
/* Fields                                                              */
/* ------------------------------------------------------------------ */

.signin-label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

/* 16px is not a taste. Under it, Safari on iPhone zooms the page in as soon
   as the field is tapped - see CSS/MobileReadability.css. */
.signin-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    margin: 0 0 18px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    color: #222222;
    background: #ffffff;
    box-sizing: border-box;
}

.signin-input:focus {
    border-color: #6b29ad;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 41, 173, .12);
}

/* The six digits: spaced out, because they are read off a screen and typed
   one at a time. */
.signin-code {
    letter-spacing: 8px;
    font-size: 22px;
    text-align: center;
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

a.signin-button,
a.signin-button:link,
a.signin-button:visited {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 6px;
    background: #6b29ad;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

a.signin-button:hover,
a.signin-button:focus {
    background: #59218f;
    color: #ffffff;
    text-decoration: none;
}

a.signin-secondary,
a.signin-secondary:link,
a.signin-secondary:visited {
    display: block;
    margin: 16px 0 0;
    font-size: 14px;
    text-align: center;
    color: #6b29ad;
    text-decoration: none;
}

a.signin-secondary:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Google, and the line under it                                       */
/* ------------------------------------------------------------------ */

.signin-google {
    margin: 0 0 20px;
}

/* Google draws its own button inside this; centre whatever it gives us. */
.signin-google .g_id_signin {
    display: flex;
    justify-content: center;
}

.signin-or {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.signin-or:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e3e3e3;
}

.signin-or span {
    position: relative;
    padding: 0 12px;
    background: #ffffff;
    font-size: 13px;
    color: #999999;
}

/* ------------------------------------------------------------------ */
/* The line that says who we think you are                             */
/* ------------------------------------------------------------------ */

.signin-who {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f5f5f7;
    font-size: 14px;
    color: #444444;
    word-break: break-all;
}

a.signin-change,
a.signin-change:link,
a.signin-change:visited {
    float: right;
    margin-left: 8px;
    font-size: 13px;
    color: #6b29ad;
    text-decoration: underline;
    word-break: normal;
}

/* ------------------------------------------------------------------ */
/* Checkboxes, hints, messages                                         */
/* ------------------------------------------------------------------ */

.signin-stay,
.signin-check {
    display: block;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: normal;
    color: #444444;
    line-height: 1.5;
    cursor: pointer;
}

.signin-stay input,
.signin-check input {
    margin-right: 8px;
    vertical-align: middle;
}

.signin-check a {
    color: #6b29ad;
    text-decoration: underline;
}

.signin-hint {
    margin: -12px 0 18px;
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
}

.signin-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f0c8c8;
    border-radius: 6px;
    background: #fdf3f3;
    font-size: 14px;
    line-height: 1.5;
    color: #a33a3a;
}

.signin-message-ok {
    border-color: #cfe3d0;
    background: #f4faf4;
    color: #2f6b3a;
}

.signin-foot {
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #efefef;
    font-size: 14px;
    text-align: center;
    color: #888888;
}

.signin-foot a {
    color: #6b29ad;
    text-decoration: none;
}

.signin-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .signin-page {
        padding: 16px 16px 48px;
    }

    .signin-card {
        padding: 22px 18px 20px;
    }
}
