/* mediarath SCP Login – Modern Redesign */

/* ── Hintergrund ───────────────────────────────────── */
html, body {
    background: #1c2340;
    background: linear-gradient(135deg, #1c2340 0%, #111827 100%);
    min-height: 100%;
    height: auto;
    overflow-y: auto;
}

/* Blur-Hintergrund ausblenden – wir verwenden stattdessen den gradient */
#brickwall,
#background,
#blur {
    display: none !important;
}

/* ── Login-Card ─────────────────────────────────────── */
#loginBox {
    position: relative;
    top: auto;
    left: auto;
    margin: 60px auto;
    width: 420px;
    max-width: 92vw;
    padding: 40px 40px 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
    text-align: left;
    isolation: auto;
    mix-blend-mode: normal;
}

#loginBox:after {
    display: none;
}

/* ── Logo ───────────────────────────────────────────── */
#logo a {
    display: block;
    text-align: center;
    height: auto;
    margin-bottom: 8px;
}

#logo a img {
    max-height: 56px;
    max-width: 220px;
}

/* ── Titel / Nachricht ──────────────────────────────── */
h1#logo {
    margin-bottom: 0;
}

h3#login-message {
    text-align: center;
    font-size: 0.85em;
    font-weight: 500;
    color: #c53030;
    margin: 8px 0 16px;
    min-height: 1.2em;
}

.banner {
    text-align: center;
    color: #4a5568;
    font-size: 0.88em;
    margin-bottom: 20px;
}

/* Trennlinie */
.or hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* ── Formular ───────────────────────────────────────── */
form {
    width: 100%;
    margin: 0;
}

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

fieldset input[type="text"],
fieldset input[type="password"] {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 0.95em;
    border: 1.5px solid #cbd5e0;
    border-radius: 7px;
    background: #f7fafc;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s;
}

fieldset input[type="text"]:focus,
fieldset input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
    outline: none;
}

/* Placeholder */
::placeholder {
    color: #a0aec0;
    font-style: normal;
}

/* ── Passwort vergessen Link ────────────────────────── */
h3 a#reset-link {
    font-size: 0.8em;
    font-weight: 400;
    color: #3b82f6;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

h3 a#reset-link:hover {
    text-decoration: underline;
}

/* ── Submit-Button ──────────────────────────────────── */
button[type=submit].submit,
input[type="submit"] {
    display: block;
    width: 100%;
    padding: 11px 20px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    height: auto;
    line-height: 1.4;
    margin-top: 4px;
}

button[type=submit].submit:hover,
input[type="submit"]:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    color: #fff;
}

button[type=submit].submit:active,
input[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

button[type=submit].submit:disabled {
    background: #93c5fd;
    box-shadow: none;
    cursor: not-allowed;
}

/* Icon im Button ausrichten */
button[type=submit] i {
    margin-right: 6px;
}

/* ── Firmen-Label (unten) ───────────────────────────── */
#company {
    position: static;
    width: auto;
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.75em;
    color: #718096;
}

#company .content {
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    border-radius: 0;
    padding: 0;
    color: #718096;
    display: inline;
}

/* ── Powered-By (rechts unten) ──────────────────────── */
#poweredBy {
    position: fixed;
    bottom: 12px;
    right: 14px;
    font-size: 0.7em;
    color: rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.35);
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: none;
    text-shadow: none;
}

#poweredBy .osticket-logo {
    width: 48px;
    filter: none;
    -webkit-filter: none;
    opacity: 0.7;
}

/* ── Externe Auth-Provider ──────────────────────────── */
.external-auth {
    display: block;
    margin-bottom: 8px;
}

.external-auth-box {
    border-radius: 7px;
    border: 1.5px solid #cbd5e0;
}

/* ── Lade-Overlay ───────────────────────────────────── */
#loading {
    text-align: center;
    padding: 20px 0;
    color: #4a5568;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    #loginBox {
        margin: 20px auto;
        padding: 28px 22px 22px;
        border-radius: 8px;
    }
}
