html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.app {
    font-family: system-ui, sans-serif;
}

.app-shell {
    --shell-g1: 78, 41, 142;
    --shell-g2: 186, 64, 172;
    --shell-g-alpha-1: 0.92;
    --shell-g-alpha-2: 0.82;
    /* Soft content area background — volunteer / default */
    --app-content-bg-start:    #f6f4fb;
    --app-content-bg-end:      #faf9fd;
    --app-content-accent-soft: rgba(78, 41, 142, 0.04);
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.app-shell.shell-role-association {
    --shell-g1: 74, 66, 209;
    --shell-g2: 133, 99, 255;
    --shell-g-alpha-1: 0.90;
    --shell-g-alpha-2: 0.80;
    /* Soft content area background — association */
    --app-content-bg-start:    #f4f4fc;
    --app-content-bg-end:      #f9f9fe;
    --app-content-accent-soft: rgba(74, 66, 209, 0.04);
}

.app-shell.shell-role-company {
    --shell-g1: 32, 16, 74;
    --shell-g2: 86, 42, 122;
    --shell-g-alpha-1: 0.92;
    --shell-g-alpha-2: 0.84;
    /* Soft content area background — company */
    --app-content-bg-start:    #f3f3f6;
    --app-content-bg-end:      #f8f8fb;
    --app-content-accent-soft: rgba(32, 16, 74, 0.04);
}

.app-sidebar {
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.10), transparent 45%),
        linear-gradient(
            135deg,
            rgba(var(--shell-g1), var(--shell-g-alpha-1)),
            rgba(var(--shell-g2), var(--shell-g-alpha-2))
        );
    color: #fff;
    display: flex;
    flex-direction: column;
    border-right: none;
    transition: width 0.2s ease;
    overflow: hidden;
}

.app-sidebar.collapsed {
    width: 72px;
}

.app-sidebar.collapsed .sidebar-nav {
    padding-left: 8px;
    padding-right: 8px;
}

.app-sidebar.collapsed .sidebar-link,
.app-sidebar.collapsed .sidebar-admin summary {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-brand-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    text-decoration: none;
}

.sidebar-brand-logo {
    height: 30px;
    width: auto;
    display: block;
}

.sidebar-toggle {
    position: absolute;
    right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-admin summary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.sidebar-icon {
    min-width: 24px;
    text-align: center;
}

.app-sidebar.collapsed .sidebar-label {
    display: none;
}

.app-sidebar.collapsed .sidebar-brand-logo {
    height: 22px;
}

.sidebar-admin {
    margin-top: 6px;
}

.sidebar-admin summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

.sidebar-admin summary::-webkit-details-marker {
    display: none;
}

.admin-item {
    margin-left: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.16);
}

.sidebar-footer .language-selector {
    width: 100%;
}

.sidebar-footer .language-select {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8rem;
}

.sidebar-footer .language-select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-menu-toggle {
    border: 1px solid var(--bs-border-color);
    background: #fff;
    color: #334155;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: none;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.org-switcher {
    min-width: 220px;
}

.org-switcher .form-select {
    min-width: 220px;
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: 5px 10px 5px 6px;
    background: #fff;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu-items {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 8px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.profile-menu-items a {
    color: inherit;
    text-decoration: none;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: var(--bs-border-radius-sm);
    white-space: nowrap;
}

.profile-menu-item:hover {
    background: var(--bs-secondary-bg-subtle);
}

.profile-menu-item.unread {
    background: var(--bs-primary-bg-subtle);
}

.profile-menu-item-icon {
    font-size: 14px;
    line-height: 1;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    overflow: visible;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    object-fit: cover;
}

.profile-avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--shell-g1), 0.92), rgba(var(--shell-g2), 0.82));
}

.profile-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.profile-notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.profile-menu-pill {
    margin-left: auto;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
}

.language-selector {
    display: inline-flex;
    align-items: center;
}

.language-select {
    appearance: none;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 28px 6px 12px;
    font-size: 12px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    position: relative;
}

.language-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.app-content {
    padding: 28px;
    background:
        radial-gradient(circle at 85% 10%, var(--app-content-accent-soft), transparent 28%),
        linear-gradient(180deg, var(--app-content-bg-start), var(--app-content-bg-end));
    min-height: 100%;
}

.app-empty {
    min-height: 100vh;
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .header-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-actions {
        margin-left: auto;
    }

    .profile-name {
        max-width: 88px;
    }

    .org-switcher,
    .org-switcher .form-select {
        min-width: 170px;
    }

}

.field {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input {
    padding: 8px;
}

.btn {
    padding: 8px 12px;
}

.list {
    padding-left: 0;
    list-style: none;
}

.list-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.title {
    font-weight: 600;
}

.meta {
    color: #666;
    font-size: 0.9em;
}

.error {
    background: #fff1f1;
    padding: 10px;
    border: 1px solid #ffd0d0;
    margin: 10px 0;
}

.badge {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 12px;
}

/* Landing Page Styles */
.landing-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

/* Activity feed redesign */
.activity-feed-page {
    max-width: 1220px;
}

.shell-role-volunteer .activity-feed-page {
    max-width: none;
}

.activity-feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 18px;
    align-items: start;
}

.activity-feed-main {
    min-width: 0;
}

.activity-feed-list {
    position: relative;
    display: grid;
    gap: 12px;
}

.activity-feed-list::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: #d8dee6;
}

.activity-feed-item {
    position: relative;
    z-index: 1;
}

.activity-item-grid {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.activity-item-grid.has-thumbnail {
    grid-template-columns: 40px minmax(0, 1fr) 88px;
}

.activity-avatar-column {
    position: relative;
}

.activity-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #fff;
    display: grid;
    place-items: center;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #d7dde3;
}

.activity-avatar-fallback {
    background: #eaf2ff;
    color: #1a4f9a;
    font-weight: 700;
    font-size: 0.82rem;
}

.activity-content-column {
    min-width: 0;
}

.activity-item-headline-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.activity-item-headline {
    font-size: 0.97rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    color: #192230;
}

.activity-item-timestamp {
    color: #6c757d;
    font-size: 0.78rem;
    white-space: nowrap;
}

.activity-item-description {
    margin: 0 0 8px;
    color: #4f5b66;
    font-size: 0.86rem;
}

.activity-event-summary {
    border: 1px solid var(--border-subtle, #e6ebf0);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: var(--surface-card-muted, #f7f9fc);
}

.activity-event-title {
    display: inline-block;
    font-weight: 600;
    color: #154887;
    text-decoration: none;
    margin-bottom: 4px;
}

.activity-event-title:hover {
    text-decoration: underline;
}

.activity-event-meta {
    display: grid;
    gap: 2px;
}

.activity-event-meta-line {
    color: #637382;
    font-size: 0.79rem;
    line-height: 1.35;
}

.activity-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.activity-like-btn {
    border: 1px solid #d6dee8;
    background: #fff;
    color: #5e6a76;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.activity-like-btn:hover:not(:disabled) {
    border-color: #8bb2da;
    background: #f2f8ff;
}

.activity-like-btn:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
}

.activity-like-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.activity-like-btn.is-active {
    color: #0a3f7d;
    border-color: #5e95cf;
    background: #dbeaff;
}

.activity-like-icon {
    font-size: 1rem;
}

.activity-likes-count {
    color: #67707a;
    font-size: 0.79rem;
    white-space: nowrap;
}

.activity-thumbnail-column {
    display: flex;
    justify-content: flex-end;
}

.activity-event-thumbnail {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dce3ea;
}

@media (max-width: 1100px) {
    .activity-feed-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-feed-sidebar {
        order: 2;
    }
}

@media (max-width: 640px) {
    .activity-feed-list::before {
        left: 18px;
    }

    .activity-item-grid.has-thumbnail {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .activity-thumbnail-column {
        grid-column: 2;
        justify-content: flex-start;
    }

    .activity-event-thumbnail {
        margin-top: 4px;
    }
}

/* Event details aligned with activity feed template */
.event-details-page .event-details-layout {
    display: grid;
    gap: 12px;
}

.event-details-page .event-details-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 18px;
    align-items: start;
}

.event-details-page .event-details-main-column {
    min-width: 0;
}

.event-details-page .event-details-column,
.event-details-page .app-panel-stack {
    display: grid;
    gap: 12px;
    align-content: start;
}

.event-details-page .event-details-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
}

.event-details-page .activity-feed-sidebar .event-details-card {
    background: var(--surface-widget);
}

.event-details-page .event-card-header {
    margin-bottom: 10px;
}

.event-details-page .event-card-header .h5 {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-heading);
}

.event-details-page .event-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-heading);
    margin: 0;
}

.event-details-page .event-hero-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    align-items: start;
}

.event-details-page .event-hero-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.event-details-page .event-hero-content {
    display: grid;
    gap: 7px;
    justify-items: start;
    text-align: left;
}

.event-details-page .event-hero-end {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.event-details-page .event-hero-image {
    width: 100%;
    height: clamp(180px, 24vw, 260px);
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.event-details-page .event-primary-action {
    justify-self: start;
}

.event-details-page .event-hook {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.event-details-page .event-back-link {
    color: var(--accent-link);
    font-size: 0.8rem;
}

.event-details-page .event-quick-grid,
.event-details-page .event-social-grid {
    display: grid;
    gap: 8px;
}

.event-details-page .event-quick-item,
.event-details-page .event-social-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.event-details-page .event-meta-label {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.event-details-page .event-meta-value {
    font-size: 0.84rem;
    color: var(--text-heading);
}

.event-details-page .event-stat-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-heading);
}

.event-details-page .event-address {
    color: var(--text-meta);
    font-size: 0.79rem;
    line-height: 1.35;
}

.event-details-page .event-location-map {
    width: 100%;
    min-height: 300px;
    height: 320px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

@media (max-width: 1100px) {
    .event-details-page .event-details-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

.landing-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
}

.landing-language {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 3;
}

/* === Auth Left Panel Layers === */
.auth-left {
    position: relative;
    overflow: hidden;
    border-radius: 0;

    --g1: 78, 41, 142;
    --g2: 186, 64, 172;
    --g-alpha-1: 0.92;
    --g-alpha-2: 0.82;
    --glow-alpha: 0.10;
    --overlay-opacity: 1;
}

.auth-bg {
    position: absolute;
    inset: 0;
    background-image: var(--auth-bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
    transition: opacity 300ms ease;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,var(--glow-alpha)), transparent 45%),
        linear-gradient(
            135deg,
            rgba(var(--g1), var(--g-alpha-1)),
            rgba(var(--g2), var(--g-alpha-2))
        );
    opacity: var(--overlay-opacity);
    transition: opacity 300ms ease, background 300ms ease;
}

.auth-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 48px;
}

.landing-copy {
    max-width: 540px;
}

.landing-copy-title {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 46px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-copy-title span {
    display: block;
    white-space: nowrap;
}

.landing-copy-subtitle {
    margin: 18px 0 0;
    font-size: 20px;
    line-height: 1.4;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1200px) {
    .auth-content {
        padding: 40px;
    }

    .landing-copy-title {
        font-size: clamp(32px, 3.8vw, 40px);
    }

    .landing-copy-subtitle {
        font-size: 18px;
        max-width: 460px;
    }
}

@media (max-width: 992px) {
    .auth-content {
        padding: 32px;
    }

    .landing-copy-title {
        font-size: 34px;
    }

    .landing-copy-subtitle {
        font-size: 17px;
        max-width: 420px;
    }
}

.auth-left.role-volunteer {
    --g1: 78, 41, 142;
    --g2: 186, 64, 172;
    --g-alpha-1: 0.92;
    --g-alpha-2: 0.82;
    --glow-alpha: 0.10;
}

.auth-left.role-association {
    --g1: 74, 66, 209;
    --g2: 133, 99, 255;
    --g-alpha-1: 0.90;
    --g-alpha-2: 0.80;
    --glow-alpha: 0.10;
}

.auth-left.role-company {
    --g1: 32, 16, 74;
    --g2: 86, 42, 122;
    --g-alpha-1: 0.92;
    --g-alpha-2: 0.84;
    --glow-alpha: 0.08;
}

.auth-left.is-switching .auth-bg,
.auth-left.is-switching .auth-overlay {
    opacity: 0.9;
}

.landing-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 6px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.auth-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.tab-button:hover {
    color: #333;
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.landing-container.landing-volunteer .tab-button.active {
    color: #4E298E;
    border-bottom-color: #4E298E;
}

.landing-container.landing-association .tab-button.active {
    color: #4A42D1;
    border-bottom-color: #4A42D1;
}

.landing-container.landing-company .tab-button.active {
    color: #20104A;
    border-bottom-color: #20104A;
}

/* Tab Content */
.tab-content {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Authentication Form */
.auth-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.auth-form .auth-field {
    margin-bottom: 16px;
}

.auth-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-form .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.auth-form .form-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.auth-form .auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
}

.auth-form .auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.auth-form .auth-remember label {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
    cursor: pointer;
}

.auth-form .btn-primary {
    background-color: #667eea;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    background-color: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-footer {
    text-align: right;
    margin-top: 12px;
}

.form-footer .forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.form-footer .forgot-password:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Auth Toggle */
.auth-toggle {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auth-toggle p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Events create modal tabs: force landing-like visual style via global CSS override */
.event-form .event-create-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.event-form .event-create-tab {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-form .event-create-tab:hover {
    color: #333;
    background-color: #f8f9fa;
}

.event-form .event-create-tab.active {
    color: #4E298E;
    border-bottom-color: #4E298E;
}

.event-form .event-create-tab.completed {
    color: #495057;
}

@media (max-width: 767.98px) {
    .event-form .event-create-tab {
        padding: 10px 10px;
        font-size: 13px;
    }
}

.auth-toggle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-toggle a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Validation Styles */
.auth-form .validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-form .validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-container {
        flex-direction: column;
        height: auto;
    }

    .landing-left {
        min-height: 300px;
        padding: 20px;
    }

    .auth-content {
        padding: 24px;
    }

    .landing-copy-title {
        font-size: 30px;
    }

    .landing-copy-title span {
        white-space: normal;
    }

    .landing-copy-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .landing-right {
        padding: 20px;
        min-height: auto;
    }

    .auth-container {
        max-width: 100%;
    }

    .placeholder-content h2 {
        font-size: 20px;
    }

    .placeholder-content p {
        font-size: 14px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .tab-button {
        font-size: 12px;
        padding: 10px 8px;
    }
}