/* =========================================================
   ATTComputer - Agent login overrides
   Responsive box + light/dark (html.att-dark, same
   localStorage key as the rest of the theme).
   Loaded AFTER stock login.css - wins the cascade.
   ========================================================= */

/* ---------- responsive ---------- */

#loginBox {
    width: min(400px, calc(100vw - 28px)) !important;
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
    padding: 1.3em 1.2em !important;
    border-radius: 14px;
}

#loginBox:after {
    background-color: rgba(255, 255, 255, 0.84) !important;
    border-radius: 14px;
}

form {
    width: min(260px, 100%) !important;
}

fieldset input {
    padding: 10px 12px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    height: auto !important;
}

/* brand-blue full-width submit */
form#login button[type=submit],
form#login input[type=submit] {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 11px 14px !important;
    height: auto !important;
    line-height: 1.3 !important;
    background: linear-gradient(135deg, #006cae, #00598f) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 108, 174, .30) !important;
    font-size: 15px !important;
}

form#login button[type=submit]:hover,
form#login input[type=submit]:hover {
    background: #00598f !important;
}

#reset-link { font-size: 13px; }

/* remove "Powered by osTicket" badge */
#poweredBy {
    display: none !important;
}

/* copyright: normal flow under the login form
   (was absolutely positioned and overlapped the SSO button) */
#company {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: 20px;
    font-size: 12px;
}

#company .content {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 10px;
    background-color: rgba(10, 25, 40, .35);
    box-shadow: 0 0 6px rgba(0, 0, 0, .25);
    text-shadow: none;
    color: #e7eef5;
}

html.att-dark #company .content {
    background-color: rgba(6, 18, 30, .65);
    color: #c8d6e2;
}

/* ---------- theme toggle button ---------- */

#att-login-theme {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 60;

    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    background: rgba(10, 25, 40, .45);
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}

#att-login-theme:hover { background: rgba(10, 25, 40, .65); }

/* ---------- dark mode ---------- */

html.att-dark #brickwall {
    filter: brightness(.4) saturate(.85);
}

html.att-dark #loginBox:after {
    background-color: rgba(10, 20, 32, 0.90) !important;
    border-color: #2b4053;
}

html.att-dark #loginBox {
    color: #dce7f1;
}

html.att-dark #login-message { color: #ff9b8a !important; }

html.att-dark .banner { color: #9fb3c4 !important; }

html.att-dark fieldset input {
    background: rgba(13, 25, 38, .92) !important;
    color: #e2ebf4 !important;
    border: 1px solid #34495e !important;
}

html.att-dark fieldset input::placeholder { color: #71869a; }

html.att-dark #company .content {
    background-color: rgba(10, 20, 32, .8);
    color: #c8d6e2;
    text-shadow: none;
}

html.att-dark #att-login-theme {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
}

html.att-dark #att-login-theme:hover { background: rgba(255, 255, 255, .22); }

/* ---------- small screens ---------- */

@media screen and (max-width: 480px) {
    #loginBox {
        top: 8vh !important;
        padding: 1.1em 0.9em !important;
    }

    #logo a { height: 72px; }
    #logo a img { max-height: 52px; }

    #att-login-theme {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* =========================================================
   att-login-377 (26-10-2026)
   1) Achtergrond weer volledig viewport-breed: #brickwall
      blijft op inset 0 met background-size: cover (geen
      apart paneel, geen letterbox). background-position:
      left center houdt de grote logo-compositie aan de
      linkerrand zichtbaar bij elke crop.
   2) Desktop (>=1025px): kaart verticaal gecentreerd en
      licht rechts van het midden (clamp 52-58%) - boven
      het rustige gebied van de afbeelding, niet tegen de
      rechterrand. Logo, globe en achtergrondtekst blijven
      zichtbaar. Tablet (<=1024px): kaart naar het midden.
   3) Geen vaste coördinaten voor één resolutie: percentages
      + clamp + media queries; kaartbreedte blijft
      min(400px, 100vw - 28px).
   ========================================================= */

/* ---------- achtergrond: full-bleed ---------- */

#brickwall {
    background-position: left center !important;
}

/* ---------- desktop: kaart licht rechts van het midden ---------- */

@media screen and (min-width: 1025px) {

    #loginBox {
        left: clamp(52%, 55%, 58%) !important;
        top: 50% !important;
        margin-left: 0 !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* ---------- SSO-knop: normal ---------- */
a.external-sign-in { text-decoration: none; }

.external-auth-box {
    background: #F1F5FB !important;
    border: 1px solid #64748B !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 35, 60, .18) !important;
    overflow: hidden;
}

.external-auth-icon {
    color: #243449 !important;
    background: transparent !important;
    border-right: 1px solid #CBD5E1 !important;
}

.external-auth-name {
    color: #243449 !important;
    font-weight: 600 !important;
    width: auto !important;
    padding: 5px 16px !important;
}

/* ---------- SSO-knop: hover / active / focus ---------- */

a.external-sign-in:hover .external-auth-box {
    background: #E2EBFA !important;
    border-color: #3658DC !important;
}

a.external-sign-in:hover .external-auth-icon {
    color: #243449 !important;
}

a.external-sign-in:active .external-auth-box {
    background: #D5E3F9 !important;
    border-color: #2B49C0 !important;
    box-shadow: inset 0 1px 3px rgba(15, 35, 60, .22) !important;
}

a.external-sign-in:focus { outline: none; }

a.external-sign-in:focus-visible {
    outline: 2px solid #3658DC !important;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- SSO-knop: donker ---------- */

html.att-dark .external-auth-box {
    background: #243449 !important;
    border-color: #6C87A5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .45) !important;
}

html.att-dark .external-auth-icon {
    color: #E7EDF6 !important;
    border-right-color: #3B5068 !important;
}

html.att-dark .external-auth-name { color: #E7EDF6 !important; }

html.att-dark a.external-sign-in:hover .external-auth-box {
    background: #2E4258 !important;
    border-color: #5AA2E0 !important;
}

html.att-dark a.external-sign-in:hover .external-auth-icon {
    color: #FFFFFF !important;
}

html.att-dark a.external-sign-in:active .external-auth-box {
    background: #1B2A3C !important;
    border-color: #5AA2E0 !important;
}

html.att-dark a.external-sign-in:focus-visible {
    outline: 2px solid #5AA2E0 !important;
    outline-offset: 2px;
}

/* ---------- kleine schermen: SSO-knop volledige breedte ---------- */

@media screen and (max-width: 480px) {
    .external-auth { padding: 0 2px; }

    .external-auth-box {
        display: flex !important;
        width: 100% !important;
        align-items: center;
    }

    .external-auth-name {
        flex: 1;
        text-align: left;
    }
}
