/*
 * browserleak.css — post-login fingerprint report styles for the HCMUT SSO
 * clone. Everything is scoped under #login (the report replaces the form's
 * content inside the box; the box, sidebar and cas.css stay untouched).
 * Tokens match the site's own stylesheet: #210F7A indigo, #990033 burgundy,
 * #0088CC -> #0044CC button gradient, #FFFFDD fields, dotted #BB0000 / #390
 * message borders, Helvetica stack, 4-5px radii.
 */

/* ---------------------------------------------------------------------------
 * Panel — dynamic states reuse the original #fm1 grey rounded panel so the
 * box keeps the same visual weight after the form is swapped out.
 * ------------------------------------------------------------------------ */
#login .bl-panel {
    padding: 20px;
    background: #eee;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* Auth and error states are short-lived; pinning them to roughly the form's
 * height keeps the floated #login box from collapsing and reflowing the
 * sidebar into the left column mid-swap. */
#login .bl-panel--fixed {
    min-height: 300px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * Authenticating state
 * ------------------------------------------------------------------------ */
#login .bl-auth {
    padding: 40px 20px;
    text-align: center;
    color: #777777;
    font-size: 14px;
    font-weight: bold;
}

#login .bl-auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 3px solid #DDDDDD;
    border-top-color: #210F7A;
    border-radius: 50%;
    vertical-align: -3px;
    animation: bl-spin 0.7s linear infinite;
}

@keyframes bl-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
 * Success / error header (uses the site's #msg.success / #msg.errors motif,
 * whose cas.css rules already apply; this file only overrides the note text)
 * ------------------------------------------------------------------------ */
#login .bl-msg-note {
    color: #777777;
    font-size: 12px;
    margin-top: 0.4em;
}

#login .msg.errors h2,
#login .msg.success h2 {
    text-align: left;
}

/* ---------------------------------------------------------------------------
 * Report sections
 * ------------------------------------------------------------------------ */
#login .bl-report-scroll {
    max-height: 400px;
    overflow-y: scroll;
    margin-top: 10px;
    padding-right: 4px;
}

#login .bl-section h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #990033;
    margin: 1.2em 0 0.3em;
}

#login .bl-section:first-child h3 { margin-top: 0.8em; }

#login .bl-section dl {
    margin: 0;
}

#login .bl-section dt {
    display: inline-block;
    width: 40%;
    margin-right: 2%;
    vertical-align: top;
    color: #777777;
    font-size: 12px;
    font-weight: bold;
    text-align: left;
}

#login .bl-section dd {
    display: inline-block;
    width: 57%;
    margin: 0;
    vertical-align: top;
    font-family: Consolas, Menlo, "Courier New", monospace;
    font-size: 11px;
    color: #222222;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
}

#login .bl-empty {
    padding: 24px 10px;
    color: #777777;
    font-size: 12px;
    text-align: center;
}

/* ---------------------------------------------------------------------------
 * Actions
 * ------------------------------------------------------------------------ */
#login .bl-actions {
    margin-top: 14px;
    text-align: left;
}

#login .bl-btn {
    display: inline-block;
    margin-right: 8px;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    padding: 4px 14px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
}

#login .bl-btn--copy {
    background-color: #006DCC;
    background-image: linear-gradient(to bottom, #0088CC, #0044CC);
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

#login .bl-btn--copy:hover { background-color: #0088CC; }

#login .bl-btn--signout {
    background: #FFFFFF;
    border-color: #DDDDDD;
    color: #222222;
}

#login .bl-btn--signout:hover { border-color: #777777; }

/* ---------------------------------------------------------------------------
 * Print: no scroll clipping; interactive controls hidden
 * ------------------------------------------------------------------------ */
@media print {
    #login .bl-report-scroll {
        max-height: none;
        overflow: visible;
    }

    #login .bl-actions { display: none; }
}

/* ---------------------------------------------------------------------------
 * Mobile (< 799px) — matches the site's full-width box behavior
 * ------------------------------------------------------------------------ */
@media only screen and (max-width: 799px) {
    #login .bl-section dt { width: 36%; }

    #login .bl-section dd { width: 61%; }

    #login .bl-actions { text-align: center; }

    #login .bl-btn { width: 100%; margin: 0 0 8px; }
}
