/* Shared page styles used by sf-index.jsp and sso-error.jsp */

body.sf-page {
    margin: 0;
    font-family: 'Poppins', 'sans-serif';
    font-size: 1rem;
    line-height: 1.625;
}

img.sf-logo {
    max-height: 45px;
    padding: 0.5rem;
}

div.sf-outer {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

div.sf-constrained-width {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

div.sf-test-marker {
    position: absolute;
    background-color: yellow;
    left: 5px;
    top: 5px;
}

div.sf-footer {
    background-color: #777777;
    color: #f2f2f2;
    height: 45px;
    font-size: smaller;
    width: 100%;
    display: flex;
    flex-direction: column;
}

div.sf-footer div {
    margin: auto;
}

/* Layout differences by page */
body.sf-page-login div.sf-main {
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
}

body.sf-page-sso-error div.sf-main {
    display: flex;
    flex-direction: column;
    row-gap: 0.75rem;
}

/* Login-page specific (previously in index.css) */
div.sf-error {
    border: 1px solid red;
    background-color: #ffc0c0;
    color: red;
    width: fit-content;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

div.sf-message {
    width: 25rem;
}

label {
    font-size: 0.875rem;
    color: #1b2b41b0;
}

input[type='text'], input[type='password'], select {
    font-family: 'Poppins', 'sans-serif';
    font-size: 1rem;
    line-height: 2.25rem;
    width: 20rem;
    border-color: #1b2b41b0;
    border-radius: 0.25em;
    border-width: 1px;
    padding: 0 0.5rem;
}

input[type='submit'] {
    background-color: #005ead;
    color: white;
    font-family: 'Poppins', 'sans-serif';
    font-size: 1rem;
    height: 2.25rem;
    padding: 0 1.5rem;
    border-radius: 0.25em;
    border: none;
    cursor: pointer;
}

input[type='submit'][name='reset'] {
    background-color: transparent;
    color: #005fdb;
    padding: 0;
}

input[type='submit'].disabled {
    opacity: 20%;
    cursor: not-allowed;
}

/* SSO error page specific (previously in sso-error.css) */
.sf-sso-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.sf-sso-subtitle {
    margin-bottom: 0.25rem;
    color: #444;
}

.sf-sso-errors {
    margin-top: 0.25rem;
    border: rgba(231, 29, 19, 0.5);
    background-color: rgba(231, 29, 19, 0.1);
    padding: 8px;
    width: fit-content;
}

.sf-sso-error-list {
    margin: 0;
    padding-left: 0;          /* we will provide our own marker */
    list-style: none;         /* remove default bullets */
}

.sf-sso-error-list li {
    margin: 0.35rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.sf-sso-error-icon {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;       /* keeps alignment for wrapped lines */
    border-radius: 50%;
    background: #ff0000;      /* dark red */
    color: #ffffff;           /* white exclamation */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    margin-top: 0.15rem;      /* visually matches baseline */
}

.sf-sso-error-text {
    display: inline-block;
}