:root {
    --auth-font: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --auth-bg: #f4f7f4;
    --auth-card: rgba(255, 255, 255, 0.94);
    --auth-border: #d3e1d8;
    --auth-text: #15231c;
    --auth-muted: #52635a;
    --auth-primary: #0f5f56;
    --auth-primary-strong: #0a4b43;
    --auth-accent: #0f4c81;
    --auth-danger: #8c2323;
    --auth-warning: #7a5200;
    --auth-shadow: 0 24px 70px rgba(18, 34, 28, 0.14);
}

body.sidesa-auth {
    align-items: stretch;
    background:
        radial-gradient(circle at top left, rgba(15, 95, 86, 0.18), transparent 26rem),
        radial-gradient(circle at bottom right, rgba(15, 76, 129, 0.14), transparent 28rem),
        linear-gradient(180deg, #f8fbf9 0%, var(--auth-bg) 100%);
    color: var(--auth-text);
    display: flex;
    font-family: var(--auth-font);
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

body.sidesa-auth::before,
body.sidesa-auth::after {
    border-radius: 999px;
    content: "";
    position: fixed;
    z-index: 0;
}

body.sidesa-auth::before {
    background: rgba(15, 95, 86, 0.08);
    height: 24rem;
    left: -8rem;
    top: -8rem;
    width: 24rem;
}

body.sidesa-auth::after {
    background: rgba(15, 76, 129, 0.08);
    bottom: -10rem;
    height: 28rem;
    right: -10rem;
    width: 28rem;
}

body.sidesa-auth .login-box,
body.sidesa-auth .register-box {
    margin: auto;
    max-width: 68rem;
    position: relative;
    width: 100%;
    z-index: 1;
}

body.sidesa-auth .auth-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.95fr);
}

body.sidesa-auth .auth-showcase {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 13rem),
        linear-gradient(145deg, #103c36 0%, #0f5f56 52%, #0f4c81 100%);
    border: 0;
    border-radius: 1.75rem;
    box-shadow: var(--auth-shadow);
    color: #f5fffb;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

body.sidesa-auth .auth-showcase::after {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

body.sidesa-auth .auth-showcase__content {
    position: relative;
    z-index: 1;
}

body.sidesa-auth .auth-kicker {
    color: rgba(245, 255, 251, 0.78);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

body.sidesa-auth .auth-showcase__brand {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

body.sidesa-auth .auth-showcase__logo {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    height: 3.5rem;
    object-fit: cover;
    padding: 0.35rem;
    width: 3.5rem;
}

body.sidesa-auth .auth-showcase__brand-text {
    display: flex;
    flex-direction: column;
}

body.sidesa-auth .auth-showcase__brand-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.sidesa-auth .auth-showcase__brand-subtitle {
    color: rgba(245, 255, 251, 0.76);
    font-size: 0.84rem;
    font-weight: 600;
}

body.sidesa-auth .auth-showcase h1 {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.06;
    margin-bottom: 1rem;
    max-width: 20rem;
}

body.sidesa-auth .auth-showcase p {
    color: rgba(245, 255, 251, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 34rem;
}

body.sidesa-auth .auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

body.sidesa-auth .auth-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0.8rem;
}

body.sidesa-auth .auth-panel {
    background: var(--auth-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(211, 225, 216, 0.96);
    border-radius: 1.75rem;
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

body.sidesa-auth .auth-panel__header {
    border-bottom: 1px solid var(--auth-border);
    padding: 1.5rem 1.6rem 1rem;
}

body.sidesa-auth .auth-panel__eyebrow {
    color: var(--auth-primary-strong);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

body.sidesa-auth .auth-panel__title {
    color: var(--auth-text);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.35rem;
}

body.sidesa-auth .auth-panel__text {
    color: var(--auth-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

body.sidesa-auth .login-card-body {
    background: transparent;
    border-radius: 0;
    padding: 1.45rem 1.6rem 1.6rem;
}

body.sidesa-auth .login-box-msg {
    color: var(--auth-muted);
    font-size: 0.93rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding: 0;
    text-align: left;
}

body.sidesa-auth .auth-field {
    margin-bottom: 1rem;
}

body.sidesa-auth .auth-label {
    color: var(--auth-text);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

body.sidesa-auth .auth-input-group {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    display: flex;
    overflow: hidden;
}

body.sidesa-auth .auth-input-group:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.22rem rgba(15, 95, 86, 0.16);
}

body.sidesa-auth .auth-input-group .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--auth-text);
    font-size: 0.96rem;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
}

body.sidesa-auth .auth-input-group .form-control::placeholder {
    color: #6f7f76;
}

body.sidesa-auth .auth-input-group .form-control:focus {
    box-shadow: none;
}

body.sidesa-auth .auth-input-group__icon {
    align-items: center;
    border-left: 1px solid var(--auth-border);
    color: var(--auth-primary-strong);
    display: inline-flex;
    justify-content: center;
    min-width: 3.25rem;
}

body.sidesa-auth .auth-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 0.25rem;
}

body.sidesa-auth .auth-actions .icheck-success label,
body.sidesa-auth .auth-support-text,
body.sidesa-auth .auth-link-row a {
    color: var(--auth-muted);
    font-size: 0.9rem;
}

body.sidesa-auth .auth-link-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

body.sidesa-auth .auth-link-row a {
    color: var(--auth-primary-strong);
    font-weight: 700;
}

body.sidesa-auth .btn-auth-primary {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-accent) 100%);
    border: 0;
    border-radius: 1rem;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    min-height: 3.15rem;
    padding: 0.85rem 1.2rem;
}

body.sidesa-auth .btn-auth-primary:hover,
body.sidesa-auth .btn-auth-primary:focus {
    background: linear-gradient(135deg, var(--auth-primary-strong) 0%, #0d436e 100%);
    color: #ffffff;
}

body.sidesa-auth .btn-auth-secondary {
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    color: var(--auth-text);
    font-size: 0.96rem;
    font-weight: 800;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
}

body.sidesa-auth .btn-auth-secondary:hover,
body.sidesa-auth .btn-auth-secondary:focus {
    background: #f5faf7;
    color: var(--auth-text);
}

body.sidesa-auth .auth-alert-stack {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

body.sidesa-auth .alert {
    border: 1px solid transparent;
    border-radius: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0.95rem 1rem;
}

body.sidesa-auth .alert-danger {
    background: #fdecec;
    border-color: #efbcbc;
    color: var(--auth-danger);
}

body.sidesa-auth .alert-success {
    background: #e5f7ec;
    border-color: #a9d7b9;
    color: #1b5937;
}

body.sidesa-auth .auth-divider {
    background: var(--auth-border);
    height: 1px;
    margin: 1rem 0;
    width: 100%;
}

body.sidesa-auth .auth-closed-note {
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

body.sidesa-admin .swal2-popup,
body.sidesa-auth .swal2-popup {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d5e2da;
    border-radius: 1.4rem;
    box-shadow: 0 24px 60px rgba(20, 35, 28, 0.18);
    color: #15231c;
    font-family: var(--auth-font);
    padding: 1.4rem;
}

body.sidesa-admin .swal2-title,
body.sidesa-auth .swal2-title {
    color: #15231c;
    font-size: 1.45rem;
    font-weight: 800;
}

body.sidesa-admin .swal2-html-container,
body.sidesa-auth .swal2-html-container {
    color: #4f6157;
    font-size: 0.96rem;
    line-height: 1.6;
}

body.sidesa-admin .swal2-actions .swal2-styled,
body.sidesa-auth .swal2-actions .swal2-styled {
    border-radius: 0.95rem;
    font-weight: 800;
    margin: 0 0.35rem;
    min-height: 2.9rem;
    padding: 0.75rem 1.2rem;
}

body.sidesa-admin .swal2-actions .swal2-confirm,
body.sidesa-auth .swal2-actions .swal2-confirm {
    background: #0f5f56 !important;
    color: #ffffff !important;
}

body.sidesa-admin .swal2-actions .swal2-cancel,
body.sidesa-auth .swal2-actions .swal2-cancel {
    background: #f5faf7 !important;
    border: 1px solid #d3e1d8 !important;
    color: #15231c !important;
}

body.sidesa-admin .swal2-icon.swal2-warning,
body.sidesa-auth .swal2-icon.swal2-warning {
    border-color: #d5a641 !important;
    color: #7a5200 !important;
}

body.sidesa-admin .swal2-icon.swal2-success [class^='swal2-success-line'],
body.sidesa-admin .swal2-icon.swal2-success .swal2-success-ring,
body.sidesa-auth .swal2-icon.swal2-success [class^='swal2-success-line'],
body.sidesa-auth .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #2f855a !important;
    color: #2f855a !important;
}

body.sidesa-admin .swal2-icon.swal2-success .swal2-success-line-tip,
body.sidesa-admin .swal2-icon.swal2-success .swal2-success-line-long,
body.sidesa-auth .swal2-icon.swal2-success .swal2-success-line-tip,
body.sidesa-auth .swal2-icon.swal2-success .swal2-success-line-long {
    background-color: #2f855a !important;
}

body.sidesa-auth .form-control:focus-visible,
body.sidesa-auth .btn:focus-visible,
body.sidesa-auth a:focus-visible,
body.sidesa-auth .icheck-success input:focus-visible + label {
    outline: 3px solid rgba(15, 95, 86, 0.28);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    body.sidesa-auth .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body.sidesa-auth {
        padding: 1rem;
    }

    body.sidesa-auth .auth-showcase,
    body.sidesa-auth .auth-panel {
        border-radius: 1.4rem;
    }

    body.sidesa-auth .auth-showcase {
        padding: 1.4rem;
    }

    body.sidesa-auth .auth-showcase h1 {
        font-size: 1.9rem;
    }

    body.sidesa-auth .auth-panel__header,
    body.sidesa-auth .login-card-body {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    body.sidesa-auth .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.sidesa-auth .btn-auth-primary {
        width: 100%;
    }
}
