/* ENSAG Shibboleth-inspired theme for CAS */

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.wrapper {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    max-width: 200px;
    margin-bottom: 30px;
}

.info-text {
    margin-bottom: 25px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #000000;
    border-left: 5px solid #fff042;
    padding-left: 15px;
    text-align: left;
}

h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #000000;
}

a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    color: #939598;
}

/* Form fields */
.cas-field {
    margin-bottom: 15px;
    text-align: left;
}

.cas-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #000000;
}

input[type='text'],
input[type='password'],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e6e6e6;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    font-size: 1em;
    color: #000000;
}

input[type='text']:focus,
input[type='password']:focus,
select:focus {
    border-color: #fff042;
}

input[type='submit'] {
    background-color: #fff042;
    color: #000000;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
    transition: background-color 0.2s;
    font-size: 1em;
}

input[type='submit']:hover {
    background-color: #e6d83b;
}

/* Checkboxes */
.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
}

.checkbox-field input[type='checkbox'] {
    width: auto;
    margin: 0;
}

/* Error banner */
.error-banner {
    background-color: #f8d7da;
    color: #58151c;
    border-left: 5px solid #a20323;
    padding: 12px 15px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.9em;
}

.error-banner p {
    margin: 0;
}

/* Invalid feedback */
.invalid-feedback {
    color: #a20323;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

input:invalid:not(:placeholder-shown) ~ .invalid-feedback,
.invalid-feedback.active {
    display: block;
}

/* Caps lock warning */
.caps-warn {
    display: none;
    color: #a20323;
    font-size: 0.85em;
    margin-top: 5px;
}

.caps-on .caps-warn {
    display: block;
}

/* Reveal password button */
.reveal-password {
    background: none;
    border: none;
    color: #939598;
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 5px;
    padding: 0;
}

.reveal-password:hover {
    color: #000000;
}

/* PM links */
#pmlinks {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

#pmlinks a {
    color: #000000;
}

/* Terms of use */
#termsOfUse {
    font-size: 0.85em;
    color: #939598;
    margin-bottom: 10px;
}

/* X509 login */
#x509Login {
    margin-top: 15px;
    text-align: center;
}

#x509Login a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #e6e6e6;
    color: #000000;
    text-decoration: none;
    font-size: 0.9em;
}

/* Provider discovery */
#selectIdentityProvider {
    margin-top: 15px;
    text-align: center;
}

#selectIdentityProvider button {
    background-color: #e6e6e6;
    border: none;
    padding: 10px 15px;
    color: #000000;
    cursor: pointer;
    font-size: 0.9em;
}

/* Service UI */
.service-ui {
    margin-bottom: 15px;
    text-align: left;
}

/* Hero image */
#heroimg {
    display: block;
    margin: 0 auto 15px;
    max-width: 100%;
}

/* Footer */
footer {
    margin-top: 40px;
    font-size: 0.75em;
    color: #a7a9ac;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* SR only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom EAG overrides */
#serviceui {
    background-color: #17a3b844;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}
