: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: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }
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 -120px; width: min(680px, calc(100% + 240px)); max-width: none; font-size: clamp(18px, 1.375vw, 22px); line-height: 1.3; white-space: normal; text-wrap: balance; text-align: center; font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; font-weight: 500; 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 "Poppins", ui-sans-serif, system-ui, sans-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: 18px 0 0; width: 100%; max-width: 100%; font-size: 20px; white-space: normal; text-wrap: balance; text-align: left; }
    .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; }
}

/* Password visibility toggle: keep Joomla's native behaviour but present it as
   an eye button inside the password input rather than a separate text button. */
.raedel-login-card .input-group {
    position: relative;
    display: flex;
    width: 100%;
}
.raedel-login-card .input-group input[type="password"],
.raedel-login-card .input-group input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 52px;
}
.raedel-login-card .input-group .input-password-toggle,
.raedel-login-card .raedel-credentials button[type="button"].input-password-toggle {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid transparent;
    border-radius: 0 10px 10px 0;
    background: transparent;
    color: #667985;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.raedel-login-card .input-group .input-password-toggle:hover,
.raedel-login-card .input-group .input-password-toggle:focus-visible {
    color: var(--raedel-teal);
    background: rgba(26,154,176,.06);
    outline: none;
}
.raedel-login-card .input-group .input-password-toggle::before,
.raedel-login-card .raedel-credentials button[type="button"].input-password-toggle::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5c5.23 0 9.27 4.11 10.74 5.83a1.82 1.82 0 0 1 0 2.34C21.27 14.89 17.23 19 12 19S2.73 14.89 1.26 13.17a1.82 1.82 0 0 1 0-2.34C2.73 9.11 6.77 5 12 5Zm0 2C7.8 7 4.38 10.12 2.95 12 4.38 13.88 7.8 17 12 17s7.62-3.12 9.05-5C19.62 10.12 16.2 7 12 7Zm0 1.75A3.25 3.25 0 1 1 12 15.25 3.25 3.25 0 0 1 12 8.75Zm0 2A1.25 1.25 0 1 0 12 13.25 1.25 1.25 0 0 0 12 10.75Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5c5.23 0 9.27 4.11 10.74 5.83a1.82 1.82 0 0 1 0 2.34C21.27 14.89 17.23 19 12 19S2.73 14.89 1.26 13.17a1.82 1.82 0 0 1 0-2.34C2.73 9.11 6.77 5 12 5Zm0 2C7.8 7 4.38 10.12 2.95 12 4.38 13.88 7.8 17 12 17s7.62-3.12 9.05-5C19.62 10.12 16.2 7 12 7Zm0 1.75A3.25 3.25 0 1 1 12 15.25 3.25 3.25 0 0 1 12 8.75Zm0 2A1.25 1.25 0 1 0 12 13.25 1.25 1.25 0 0 0 12 10.75Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.raedel-login-card .input-password-toggle .icon-eye,
.raedel-login-card .input-password-toggle .icon-eye-slash,
.raedel-login-card .input-password-toggle .visually-hidden {
    /* The accessible name remains on the button; its visible representation
       is supplied by the eye glyph above. */
}

/* Login motion and depth — v0.1.21
   Keep the established composition; add restrained movement around it. */
.raedel-login-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.raedel-login-brand,
.raedel-login-main {
    position: relative;
    z-index: 2;
}
.raedel-login-shell::before,
.raedel-login-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
.raedel-login-shell::before {
    inset: -16%;
    background:
        radial-gradient(circle at 67% 28%, rgba(255,255,255,.17) 0, rgba(255,255,255,.08) 9%, transparent 28%),
        radial-gradient(circle at 44% 72%, rgba(96,199,207,.15) 0, transparent 30%),
        linear-gradient(112deg, transparent 35%, rgba(255,255,255,.055) 49%, transparent 64%);
    mix-blend-mode: screen;
    opacity: .52;
    transform: translate3d(-1.5%, 1%, 0) scale(1.02);
    animation: raedel-login-aurora 12s ease-in-out infinite alternate;
}
.raedel-login-shell::after {
    width: min(54vw, 860px);
    aspect-ratio: 1;
    right: -18vw;
    top: -24vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.105) 0, rgba(96,199,207,.045) 38%, transparent 67%);
    filter: blur(8px);
    opacity: .72;
    transform: translate3d(0,0,0);
    animation: raedel-login-orbit 17s ease-in-out infinite alternate;
}
.raedel-brand-content {
    animation: raedel-brand-enter .82s cubic-bezier(.22,.72,.24,1) both;
}
.raedel-login-logo {
    transform-origin: 40% 54%;
    animation: raedel-brand-float 7.5s ease-in-out 1s infinite;
}
.raedel-login-tagline {
    animation: raedel-tagline-enter .72s cubic-bezier(.22,.72,.24,1) .2s both;
}
.raedel-login-card {
    transform-origin: 50% 56%;
    animation: raedel-card-enter .72s cubic-bezier(.2,.78,.25,1) .08s both;
}
.raedel-login-copyright {
    animation: raedel-fade-up .65s ease .38s both;
}
.raedel-login-card input[type="text"],
.raedel-login-card input[type="email"],
.raedel-login-card input[type="password"] {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.raedel-login-card input[type="text"]:focus,
.raedel-login-card input[type="email"]:focus,
.raedel-login-card input[type="password"]:focus {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26,154,176,.11), 0 8px 22px rgba(16,45,70,.055);
}
.raedel-login-submit,
.raedel-login-alt {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, filter .18s ease;
}
.raedel-login-submit {
    isolation: isolate;
}
.raedel-login-submit::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -45% auto -45% -34%;
    width: 28%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transform: skewX(-18deg) translateX(-240%);
    transition: transform .62s cubic-bezier(.22,.72,.24,1);
}
.raedel-login-submit:hover,
.raedel-login-submit:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.015);
    box-shadow: 0 14px 28px rgba(25,125,153,.25);
}
.raedel-login-submit:hover::after,
.raedel-login-submit:focus-visible::after {
    transform: skewX(-18deg) translateX(650%);
}
.raedel-login-alt:hover,
.raedel-login-alt:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(26,154,176,.42);
    background: #fbfeff;
    box-shadow: 0 8px 20px rgba(16,45,70,.055);
    text-decoration: none;
}
.raedel-login-options a,
.raedel-login-meta a {
    transition: color .16s ease, opacity .16s ease;
}
.raedel-login-options a:hover,
.raedel-login-meta a:hover {
    color: var(--raedel-teal);
    text-decoration: none;
}

@keyframes raedel-login-aurora {
    0%   { transform: translate3d(-1.8%, 1.2%, 0) scale(1.015); opacity: .42; }
    50%  { opacity: .62; }
    100% { transform: translate3d(2.2%, -1.5%, 0) scale(1.055); opacity: .52; }
}
@keyframes raedel-login-orbit {
    0%   { transform: translate3d(0,0,0) scale(.96); opacity: .52; }
    100% { transform: translate3d(-7vw, 5vw, 0) scale(1.08); opacity: .78; }
}
@keyframes raedel-brand-enter {
    from { opacity: 0; transform: translate3d(-22px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes raedel-tagline-enter {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes raedel-brand-float {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); filter: drop-shadow(0 8px 24px rgba(8,24,37,.18)); }
    50%     { transform: translate3d(0,-4px,0) rotate(-.08deg); filter: drop-shadow(0 12px 28px rgba(8,24,37,.22)); }
}
@keyframes raedel-card-enter {
    from { opacity: 0; transform: translate3d(0,18px,0) scale(.985); box-shadow: 0 10px 35px rgba(24,46,62,.07); }
    to   { opacity: 1; transform: translate3d(0,0,0) scale(1); box-shadow: var(--raedel-shadow); }
}
@keyframes raedel-fade-up {
    from { opacity: 0; transform: translate3d(0,8px,0); }
    to   { opacity: 1; transform: translate3d(0,0,0); }
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .raedel-login-shell {
        animation: raedel-backdrop-drift 26s ease-in-out infinite alternate;
    }
}
@keyframes raedel-backdrop-drift {
    from { background-position: 0% 50%; }
    to   { background-position: 1.1% 49.4%; }
}

@media (prefers-reduced-motion: reduce) {
    .raedel-login-shell,
    .raedel-login-shell::before,
    .raedel-login-shell::after,
    .raedel-brand-content,
    .raedel-login-logo,
    .raedel-login-tagline,
    .raedel-login-card,
    .raedel-login-copyright {
        animation: none !important;
        transform: none !important;
    }
    .raedel-login-submit,
    .raedel-login-alt,
    .raedel-login-card input {
        transition: none !important;
    }
    .raedel-login-submit::after { display: none; }
}

/* v0.1.22: login copyright credit */
.raedel-login-copyright a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .18s ease, opacity .18s ease, text-decoration-color .18s ease;
}
.raedel-login-copyright a:hover,
.raedel-login-copyright a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

/* v0.1.23: keep the long login strapline inside the hero at every desktop width. */
