/* The sign-in pages: Views/Account/Login.cshtml and MicrosoftSignInProblem.cshtml.
   Everything sits under .signin so none of it can leak into the rest of MyKLC, which shares
   /Master/Content/skeleton.css and MyKLC.css. The rules below are written to win over those. */

/* KLC's brand blue is taken straight from the logo (Content/images/KLC-logo-2-color.png), the blue of
   the state, with a darker shade for hovering. Change them here and the whole card follows. */
.signin {
    --klc-blue: #00729B;
    --klc-blue-dark: #005A7A;
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.signin .signin-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px;
}

.signin .signin-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-align: center;
    color: #1f2937;
}

.signin .signin-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #6b7280;
}

/* The main button, in KLC blue. Microsoft's four-square logo stays on it so people know the next page is Microsoft's. */
.signin .signin-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    box-sizing: border-box;
    background: var(--klc-blue);
    border: 1px solid var(--klc-blue);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.signin .signin-microsoft:hover,
.signin .signin-microsoft:focus {
    background: var(--klc-blue-dark);
    border-color: var(--klc-blue-dark);
    color: #fff;
    text-decoration: none;
}

.signin .signin-microsoft:focus-visible {
    outline: 3px solid var(--klc-blue);
    outline-offset: 2px;
}

/* Microsoft's logo sits on a small white tile so its four colors stay clear against the KLC blue. */
.signin .signin-microsoft-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 5px;
}

/* "or use your MyKLC password" with a line either side. */
.signin .signin-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 13px;
    color: #6b7280;
}

.signin .signin-divider::before,
.signin .signin-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.signin label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.signin input[type="text"],
.signin input[type="password"] {
    width: 100%;
    height: 44px;
    margin: 0 0 16px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

/* The glow round a box you're typing in is the KLC blue, made see-through. */
.signin input[type="text"]:focus,
.signin input[type="password"]:focus {
    border-color: var(--klc-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 155, 0.2);
}

/* The old password form's button: a quieter outline style, since Microsoft sign-in is the main way in. */
.signin input[type="submit"] {
    width: 100%;
    height: 44px;
    margin: 4px 0 0;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: normal;
    text-transform: none;
}

.signin input[type="submit"]:hover,
.signin input[type="submit"]:focus {
    background: #f0f7fa;
    border-color: var(--klc-blue);
    color: var(--klc-blue);
}

/* MVC always renders an empty validation summary; hide it until there is something to say. */
.signin .validation-summary-valid {
    display: none;
}

.signin .validation-summary-errors {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
}

.signin .validation-summary-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.signin .validation-summary-errors li {
    margin: 0;
}

.signin .signin-footnote {
    margin: 20px 0 0;
    font-size: 14px;
    text-align: center;
}

.signin .signin-footnote a {
    color: var(--klc-blue);
}

/* Phones: drop the card's box (top edge included) and let the content use the full width.
   The logo has a see-through background, so it sits cleanly on the grey page. */
@media (max-width: 549px) {
    .signin {
        padding: 8px 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}
