/* ============================================================
   osTicket SCP – Login Page  |  DU Global Brand Theme
   Clean white card, no background image
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
    font-size: 100%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    color: #1a1a1a;

    /* Clean two-tone split background */
    background: #f5f6f8;
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(204,0,0,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(204,0,0,0.04) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Hide the old blurred background image elements ───────── */
#brickwall,
#background,
#blur { display: none !important; }

/* ── Signature red top bar ────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b0000 0%, #cc0000 40%, #e53935 70%, #ff5252 100%);
    z-index: 9999;
    box-shadow: 0 1px 10px rgba(204,0,0,0.35);
}

/* ── Login card ───────────────────────────────────────────── */
#loginBox {
    position: relative;
    top: auto;
    left: auto;
    margin: 60px auto 32px;
    width: 420px;
    padding: 40px 40px 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 40px rgba(0,0,0,0.10),
        0 0 0 1px rgba(0,0,0,0.04);
    text-align: center;
    isolation: isolate;
}

/* Remove the old glassmorphism overlay */
#loginBox::after { display: none !important; }

/* ── Logo ─────────────────────────────────────────────────── */
h1#logo {
    margin: 0 0 24px;
    padding: 0;
}
h1#logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 70px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #efefef;
}
h1#logo a img {
    max-height: 54px;
    max-width: 240px;
    height: auto;
    width: auto;
    vertical-align: middle;
    outline: none;
    border: none;
    filter: none;           /* natural logo colours on white */
}
.valign-helper {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}

/* ── Message / Auth Required ──────────────────────────────── */
h3#login-message {
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 600;
    color: #cc0000;
    letter-spacing: 0.2px;
    text-align: center;
}

/* Banner text below message */
div.banner {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}
div.banner:not(:empty) { margin-bottom: 16px; }

hr {
    margin: 20px 0;
    border: none;
    border-bottom: 1px solid #ececec;
}

/* ── Form inputs ──────────────────────────────────────────── */
form#login { text-align: left; }

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

fieldset input[type="text"],
fieldset input[type="password"] {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 11px 14px;
    border: 1.5px solid #d8d8d8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
fieldset input[type="text"]:focus,
fieldset input[type="password"]:focus {
    border-color: #cc0000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
    outline: none;
}

/* Placeholder */
fieldset input::placeholder { color: #aaa; font-style: normal; }

/* ── Forgot password link ─────────────────────────────────── */
h3 a#reset-link {
    font-size: 12px;
    font-weight: 500;
    color: #cc0000;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}
h3 a#reset-link:hover { text-decoration: underline; }
h3 a#reset-link.hidden { display: none; }

/* ── Log In button ────────────────────────────────────────── */
input[type="submit"],
input[type="reset"],
input[type="button"],
button[type="submit"],
.action-button,
.button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto;
    line-height: 1;
    padding: 11px 28px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
    background: linear-gradient(135deg, #e53935 0%, #cc0000 100%);
    box-shadow: 0 4px 14px rgba(204,0,0,0.30);
    transition: background 0.15s, box-shadow 0.15s;
    -webkit-user-select: none;
    user-select: none;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
.button:hover {
    background: linear-gradient(135deg, #cc0000 0%, #a80000 100%);
    box-shadow: 0 6px 20px rgba(204,0,0,0.38);
    text-decoration: none;
    color: #fff;
}
input[type="submit"]:active,
button[type="submit"]:active { box-shadow: 0 2px 8px rgba(204,0,0,0.25); }

/* Pull-right on login button */
.pull-right { float: right; }

/* ── External auth (SSO) separator ───────────────────────── */
.or { margin: 20px 0; }
.or hr { border-color: #eaeaea; }

.external-auth { display: inline-block; margin-bottom: 8px; }
.external-auth + .external-auth { margin-top: 4px; }
a.external-sign-in { text-decoration: none; }
.external-auth-box {
    vertical-align: middle;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.external-auth-box:hover {
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
.external-auth-icon {
    display: inline-block;
    color: #444;
    width: 32px;
    padding: 6px 10px;
    border-right: 1px solid #e8e8e8;
}
.external-auth-name {
    color: #333;
    padding: 6px 14px;
    line-height: 30px;
    font-size: 13px;
    font-weight: 600;
}
img.sign-in-image {
    border: none;
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
}

/* ── Company copyright (inside card) ─────────────────────── */
#company {
    position: static;
    width: auto;
    margin: 24px 0 0;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}
#company .content {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: inline-block;
    padding: 0;
    color: #bbb;
    font-size: 12px;
    text-shadow: none;
}

/* ── Powered by  –  hidden completely ────────────────────── */
#poweredBy { display: none !important; }

/* ── Loading overlay ──────────────────────────────────────── */
#loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.88);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
#loading h1 {
    font-size: 16px;
    font-weight: 600;
    color: #cc0000;
    display: flex;
    align-items: center;
    gap: 10px;
}
