/* ===== Global background image and layout ===== */
body.login-page {
    background-image: url("/Web/Shared/images/login-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
	min-height: 75vh;
}

/* Subtle dark overlay to keep the card readable */
body.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    pointer-events: none;
}

/* Keep content above overlay */
.loginWrapper,
.wrapper,
.scClientWrapper,
.scriptRequired {
    position: relative;
    z-index: 1;
    /* no translateY here—centering is handled by flex on body */
}

/* ===== Login card ===== */
#loginFieldset {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);

    /* balanced internal spacing; equal-ish top/bottom for optical center */
    padding: 30px 60px 36px;

    /* slightly wider so fields don’t feel cramped */
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;

}

/* Remove legend */
#loginLegend { display: none !important; }

/* Logo */
#login-logo {
    display: block;
    margin: 0 auto 4px;  /* small bottom gap; the form adds the rest */
    max-height: 110px;
}

/* Error message */
.loginErrorMsg {
    background: #fff3f3;
    color: #a40000;
    border: 1px solid #ffd5d5;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;  /* gap handled by the fieldset's flex 'gap' */
    line-height: 1.3;
}

/* ===== Form layout (labels above inputs) ===== */
.loginTable {
    width: 100%;
    border-collapse: separate;
     margin: 0;
}

/* Label above input */
.loginTable .col1 {
    display: block;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: #222;
    font-size: 1rem;          /* fixed typo: no space */
    margin-bottom: 6px;
}
.loginTable .col2 {
    display: block;
    width: 100%;
}

/* Inputs */
.tbInput,
#username,
#password {
    width: 100%;
    height: 44px;
    padding: 5px 5px;
    border: 1px solid #cfcfd6;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    background-color: #f7f8ff;
    font-size: 0.95rem;
}
.tbInput:focus,
#username:focus,
#password:focus {
    border-color: #135193;
    box-shadow: 0 0 0 3px rgba(30,102,255,0.2);
}

/* Forgot links sit neatly under each input */
.forgotCreds {
    display: block;
    text-align: right;
    margin-top: 6px;
    text-decoration: none;
    color: #135193;
    font-size: 0.9rem;
}
.forgotCreds:hover { text-decoration: underline; }

/* Button */
#loginSubmit,
#Submit1,
#scClientSubmit,
input[type="submit"] {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 8px 8px;
    font-weight: 600;
    cursor: pointer;
    background: #135193;
    color: #fff;
    transition: transform 0.05s ease, box-shadow 0.2s ease;

    /* center and size nicely within the card */
    width: 70%;
    max-width: 280px;
    font-size: 1rem;
}
#loginSubmit:hover,
#Submit1:hover,
#scClientSubmit:hover,
input[type="submit"]:hover {
    box-shadow: 0 6px 18px rgba(30,102,255,0.35);
}
#loginSubmit:active,
#Submit1:active,
#scClientSubmit:active,
input[type="submit"]:active {
    transform: translateY(1px);
}

/* Wrapper padding for tiny viewports */
.loginWrapper,
.wrapper,
.scClientWrapper {
    width: 100%;
    padding: 18px;
    box-sizing: border-box;
}

/* ===== Subtle fade-in (optional) ===== */
.loginWrapper { animation: fadeIn 0.6s ease both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .loginWrapper { animation: none; }
}

/* ===== Responsive tweaks ===== */
@media (max-width: 520px) {
    #loginFieldset { padding: 28px 22px; max-width: 94vw; }
    #login-logo { max-height: 86px; margin-bottom: 8px; }
    .loginTable { border-spacing: 0 10px; }
    #loginSubmit, #Submit1, #scClientSubmit, input[type="submit"] {
        width: 100%;
        max-width: none;
    }
}

/* Optional: style Access Challenge / scClient blocks to match */
.wrapper fieldset,
#scClientFieldset {
    background: rgba(255,255,255,0.94);
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    padding: 20px 22px;
    max-width: 640px;
    margin: 0 auto;
}
