/**
 * Sign In page for non-staff accounts ([swft_member_login])
 * Brand: SWFT teal #27acbd, navy #1c4f6f, orange accent #f26a22
 */

.swft-ml-wrap {
    /* Fill the space between the site header (~96px) and footer (~444px) so
       header + card + footer together span the viewport, card centered. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(100vh - 540px);
    min-height: calc(100dvh - 540px);
    max-width: 440px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    font-family: inherit;
}

.swft-ml-card {
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 10px 30px rgba(28, 79, 111, 0.10);
    border-top: 4px solid #27acbd;
}

.swft-ml-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.swft-ml-title {
    font-size: 1.55rem;
    line-height: 1.25;
    color: #1c4f6f;
    margin: 0 0 0.5rem;
}

.swft-ml-subtitle {
    font-size: 0.95rem;
    color: #5a6b7a;
    margin: 0;
}

.swft-ml-message {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.swft-ml-error {
    background: #fdf1ec;
    border: 1px solid #f2c4ab;
    color: #9c3c10;
}

.swft-ml-success {
    background: #ecf8f4;
    border: 1px solid #b5e3d2;
    color: #1a6f52;
}

.swft-ml-field {
    margin: 0 0 1.1rem;
}

.swft-ml-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #33475b;
    margin-bottom: 0.35rem;
}

.swft-ml-field input[type="text"],
.swft-ml-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    border: 1px solid #c8d2dc;
    border-radius: 8px;
    background: #fbfcfd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.swft-ml-field input[type="text"]:focus,
.swft-ml-field input[type="password"]:focus {
    outline: none;
    border-color: #27acbd;
    box-shadow: 0 0 0 3px rgba(39, 172, 189, 0.18);
    background: #ffffff;
}

.swft-ml-remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: #5a6b7a;
    cursor: pointer;
}

.swft-ml-remember input[type="checkbox"] {
    accent-color: #27acbd;
    width: 1rem;
    height: 1rem;
}

.swft-ml-actions {
    margin: 1.4rem 0 0.9rem;
}

.swft-ml-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #1c4f6f;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.swft-ml-button:hover,
.swft-ml-button:focus {
    background: #27acbd;
    color: #ffffff;
}

.swft-ml-alt {
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

.swft-ml-alt a {
    color: #1c4f6f;
    text-decoration: underline;
}

.swft-ml-alt a:hover {
    color: #f26a22;
}

.swft-ml-footnote {
    text-align: center;
    font-size: 0.8rem;
    color: #7a8a99;
    margin-top: 1.25rem;
    line-height: 1.5;
}

/* Inline hint inside a form (e.g. password rules on the reset screen) */
.swft-ml-hint {
    text-align: left;
    margin: -0.35rem 0 0;
}

.swft-ml-signed-in {
    text-align: center;
}

/* Honeypot: visually removed, still in the DOM for bots */
.swft-ml-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
