/*
 * Sign-in, the password pages and the error pages: one card in the style of the settings cards
 * (next.css) and the record tables' blue tint.
 */
body.signin-page {
    min-width: 0;
    background: #F1F3F7;
}

.signin {
    box-sizing: border-box;
    max-width: 420px;
    margin: 0 auto;
    padding: 56px 16px 24px;
}

.signin-card {
    background: #fff;
    border: 1px solid #C8CDD6;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(43, 58, 92, 0.06), 0 4px 16px rgba(43, 58, 92, 0.06);
    overflow: hidden;
}

/* the logo on the app header's dark band */
.signin-brand {
    background: #2C2C2C;
    padding: 14px 16px;
}

.signin-brand img {
    display: block;
    max-width: 100%;
    height: 40px;
}

.signin-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F3F6FC;
    border-bottom: 1px solid #C5D0E6;
}

.signin-head h2 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #2B3A5C;
}

.signin-sub {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #5B6B8C;
}

.signin-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #DCE4F4;
    color: #4161a8;
    font-size: 17px;
}

.signin-body {
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #222;
}

.signin-body p {
    margin: 0 0 12px;
}

.signin-body a {
    color: #4161a8;
}

/* stacked labelled fields */
.signin-form label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #2B3A5C;
}

.signin-field {
    margin-bottom: 12px;
}

.signin-form input[type=text],
.signin-form input[type=email],
.signin-form input[type=password] {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 9px;
    font-size: 13px;
    border: 1px solid #C8CDD6;
    border-radius: 4px;
    background: #fff;
}

.signin-form input[type=text]:focus,
.signin-form input[type=email]:focus,
.signin-form input[type=password]:focus {
    outline: none;
    border-color: #4161a8;
    box-shadow: 0 0 0 3px rgba(65, 97, 168, 0.18);
}

.signin-form label.signin-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    font-weight: normal;
    color: #5B6B8C;
}

.signin-check input {
    margin: 0;
}

.signin-rules {
    margin: 2px 0 14px;
    padding: 10px 12px 10px 28px;
    list-style: disc;
    font-size: 11px;
    line-height: 1.6;
    color: #5B6B8C;
    background: #F7F8FA;
    border-radius: 4px;
}

.signin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.signin-actions a {
    font-size: 12px;
}

/* errors as the settings cards' inline status notes */
.signin-body ul.error_list,
.signin-body p.signin-noscript {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #FDECEC;
    color: #A32727;
    font-size: 12px;
}

.signin-field ul.error_list {
    margin-bottom: 6px;
}

/* flashes are notices (components.css); the card's paragraph spacing isn't for them */
.signin-body .notice p {
    margin: 0;
}

.signin-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 11px;
    color: #8590A6;
}

@media (max-width: 480px) {
    .signin {
        padding-top: 16px;
    }

    /* no zoom on focus in iOS */
    .signin-form input[type=text],
    .signin-form input[type=email],
    .signin-form input[type=password] {
        font-size: 16px;
    }
}
