:root {
    --raedel-navy: #102d46;
    --raedel-blue: #174f78;
    --raedel-teal: #1a9ab0;
    --raedel-aqua: #60c7cf;
    --raedel-gold: #c99b52;
    --raedel-ink: #1a2834;
    --raedel-muted: #71808c;
    --raedel-line: #dde5e9;
    --raedel-panel: #ffffff;
    --raedel-bg: #f4f7f8;
    --raedel-danger: #b53d42;
    --raedel-radius: 14px;
    --raedel-shadow: 0 24px 60px rgba(24, 46, 62, .12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--raedel-ink); background: var(--raedel-bg); font-family: inherit; }
a { color: var(--raedel-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login */
.raedel-login-page { min-height: 100vh; overflow-x: hidden; }
.raedel-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.03fr) minmax(480px, .97fr);
    background: #123f69 url("../images/login-background-v015.webp") left center / cover no-repeat;
}
.raedel-login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 7vw, 110px);
    color: #fff;
    background: transparent;
}
.raedel-login-brand::after { display: none; }
.raedel-brand-pattern { display: none; }
.raedel-brand-content { position: relative; z-index: 2; max-width: 620px; margin-left: clamp(105px, 10vw, 180px); }
.raedel-login-logo { width: min(560px, 92%); height: auto; display: block; filter: drop-shadow(0 8px 24px rgba(8, 24, 37, .18)); }
.raedel-login-tagline { margin: 22px 0 0; max-width: none; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.25; white-space: nowrap; font-family: Georgia, "Times New Roman", serif; color: rgba(255,255,255,.96); text-shadow: 0 2px 12px rgba(8, 24, 37, .18); }
.raedel-brand-footer { position: absolute; z-index: 2; left: clamp(105px, 10vw, 180px); bottom: 42px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.68); }

.raedel-login-main {
    min-height: 100vh;
    padding: 56px clamp(36px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.raedel-login-wrap { width: min(100%, 510px); }
.raedel-login-card {
    background: var(--raedel-panel);
    border: 1px solid rgba(26, 40, 52, .08);
    border-radius: 20px;
    box-shadow: var(--raedel-shadow);
    padding: 42px;
}
.raedel-login-eyebrow { color: var(--raedel-teal); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
.raedel-login-heading h1 { margin: 9px 0 8px; font: 700 34px/1.15 Georgia, "Times New Roman", serif; color: var(--raedel-navy); }
.raedel-login-heading p { margin: 0 0 30px; color: var(--raedel-muted); line-height: 1.6; font-size: 14px; white-space: nowrap; }
.raedel-login-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.raedel-credentials .control-group, .raedel-credentials .mb-3 { margin: 0 0 19px; }
.raedel-login-card label { display: block; margin: 0 0 7px; color: #41515c; font-size: 13px; font-weight: 700; }
.raedel-login-card input[type="text"],
.raedel-login-card input[type="email"],
.raedel-login-card input[type="password"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ccd7dd;
    border-radius: 10px;
    background: #fff;
    color: var(--raedel-ink);
    padding: 11px 13px;
    font: inherit;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.raedel-login-card input:focus { border-color: var(--raedel-teal); box-shadow: 0 0 0 4px rgba(26,154,176,.11); }
.raedel-login-meta { margin: 3px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }
.raedel-remember { display: flex; align-items: center; gap: 8px; color: #5a6974; }
.raedel-remember label { margin: 0; font-weight: 500; }
.raedel-remember input { width: 16px; height: 16px; accent-color: var(--raedel-teal); }
.raedel-login-submit, .raedel-login-alt {
    width: 100%; min-height: 50px; border-radius: 10px; padding: 12px 16px; font: 700 15px/1 inherit; cursor: pointer;
}
.raedel-login-submit { border: 0; color: #fff; background: linear-gradient(100deg, var(--raedel-blue), var(--raedel-teal)); box-shadow: 0 10px 20px rgba(25,125,153,.18); }
.raedel-login-submit:hover { filter: brightness(.97); }
.raedel-login-alt { margin: 0 0 11px; border: 1px solid #d6e0e4; color: #31434f; background: #fff; }
.raedel-login-options { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; color: #93a0a9; font-size: 13px; }
.raedel-login-copyright { margin-top: 30px; color: rgba(255,255,255,.72); font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* Joomla messages */
.raedel-login-page joomla-alert, .raedel-login-page .alert { display: none !important; }
joomla-alert, .alert { display: block; margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #fff4f4; border: 1px solid #f0cecf; color: var(--raedel-danger); font-size: 14px; }

/* Basic authenticated shell */
.raedel-app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.raedel-app-shell.raedel-no-sidebar { grid-template-columns: minmax(0, 1fr); }
.raedel-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; background: #fff; border-right: 1px solid var(--raedel-line); }
.raedel-sidebar-brand { display: block; padding: 4px 8px 24px; }
.raedel-sidebar-brand img { width: 190px; height: auto; display: block; }
.raedel-sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.raedel-sidebar-nav a { display: block; padding: 11px 12px; border-radius: 9px; color: #50616d; font-weight: 650; }
.raedel-sidebar-nav .active > a, .raedel-sidebar-nav a:hover { color: var(--raedel-blue); background: #edf8f9; text-decoration: none; }
.raedel-app-content { min-width: 0; display: flex; flex-direction: column; }
.raedel-topbar { min-height: 68px; display: flex; align-items: center; justify-content: flex-end; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--raedel-line); }
.raedel-main { width: 100%; max-width: 1500px; margin: 0 auto; padding: 32px; flex: 1; }
.raedel-footer { padding: 18px 32px; color: var(--raedel-muted); font-size: 13px; }

@media (max-width: 900px) {
    .raedel-login-shell { grid-template-columns: 1fr; }
    .raedel-login-brand { min-height: 260px; padding: 46px 34px; justify-content: center; background: rgba(11,48,88,.18); }
    .raedel-brand-content { margin-left: 0; }
    .raedel-login-shell { background-position: 20% center; }
    .raedel-login-logo { width: min(330px, 72vw); }
    .raedel-login-tagline { margin-top: 18px; font-size: 20px; white-space: normal; }
    .raedel-brand-footer { display: none; }
    .raedel-login-main { min-height: auto; padding: 40px 22px 50px; background: rgba(5,31,57,.08); }
    .raedel-login-card { padding: 30px 25px; }
    .raedel-login-heading p { white-space: normal; }
    .raedel-app-shell { grid-template-columns: 1fr; }
    .raedel-sidebar { position: static; width: 100%; height: auto; }
}
