/* Ino Tek Plus — Keycloak Staff Login Theme (KC 26 / PatternFly) */

/* ── Page background ── */
html.login-pf,
html.login-pf body,
.login-pf-page {
    background: #0d0d1a !important;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0d0d1a 0%, #111128 50%, #0d0d1a 100%) !important;
    min-height: 100vh;
}

/* ── Hide registration link ── */
#kc-registration, #kc-registration-container {
    display: none !important;
}

/* ── Header: hide text, show logo ── */
#kc-header {
    padding: 0 !important;
    margin: 0 !important;
}

#kc-header-wrapper {
    padding: 0 !important;
    text-align: center !important;
}

#kc-header-wrapper h1 {
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#kc-header-wrapper h1::after {
    content: '';
    display: block;
    width: 110px;
    height: 110px;
    margin: 36px auto 12px;
    background: url('../img/logo.jpg') center/contain no-repeat;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    font-size: 16px;
}

/* ── Login card ── */
.card-pf {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
    max-width: 400px !important;
    margin: 8px auto 0 !important;
    padding: 28px 32px 32px !important;
}

/* ── Form title ── */
#kc-page-title {
    color: #e2e8f0 !important;
    text-align: center !important;
    font-weight: 300 !important;
    font-size: 1.25rem !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.3px;
}

.login-pf-header {
    margin-bottom: 0 !important;
}

/* ── Labels ── */
.pf-c-form__label-text,
.form-group label {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

/* ── Input fields ── */
.pf-c-form-control,
input.pf-c-form-control {
    background: #111128 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    padding: 11px 14px !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    height: auto !important;
}

.pf-c-form-control:focus,
input.pf-c-form-control:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* ── Password toggle button ── */
.pf-c-input-group .pf-c-button.pf-m-control {
    background: #111128 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: #64748b !important;
}

.pf-c-input-group .pf-c-form-control {
    border-radius: 10px 0 0 10px !important;
}

/* ── Sign in button ── */
#kc-login,
input#kc-login {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    letter-spacing: 0.3px;
    margin-top: 4px !important;
}

#kc-login:hover,
input#kc-login:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
}

/* ── Links ── */
.card-pf a,
#kc-info a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
}

.card-pf a:hover {
    color: #a78bfa !important;
    text-decoration: underline !important;
}

/* ── Alerts / errors ── */
.pf-c-alert,
.alert,
.alert-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 8px !important;
    color: #fca5a5 !important;
    padding: 12px !important;
    margin-bottom: 16px !important;
}

/* ── Hide footer info section ── */
#kc-info,
#kc-info-wrapper,
.login-pf-signup {
    display: none !important;
}

/* ── Remember me / settings row ── */
.login-pf-settings {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
}

.login-pf-settings label {
    color: #94a3b8 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
}

/* ── Form group spacing ── */
.form-group {
    margin-bottom: 16px !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .card-pf {
        margin: 8px 16px !important;
        padding: 24px !important;
    }

    #kc-header-wrapper h1::after {
        width: 90px;
        height: 90px;
        margin-top: 20px;
    }
}
