/* components/flash.css — front session flash banner */

.front-flash {
    margin: 1rem auto 0;
    max-width: 48rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid transparent;
    border-radius: var(--radius-card-md, 0.75rem);
    font-size: 0.875rem;
    line-height: 1.55;
    box-sizing: border-box;
    width: calc(100% - 3rem);
}

.front-flash__text {
    margin: 0;
}

.front-flash--error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.front-flash--success {
    border-color: color-mix(in srgb, var(--brand-green, #16a34a) 35%, #fff);
    background: color-mix(in srgb, var(--brand-green, #16a34a) 10%, #fff);
    color: color-mix(in srgb, var(--brand-green, #16a34a) 70%, #052e16);
}

.front-flash--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.front-flash--info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.site-main > .front-flash,
.site-main > [class*="max-w"] > .front-flash:first-child,
.auth-form .front-flash {
    margin-top: 0;
    margin-bottom: 1rem;
}
