/* Logged-out sign-up card (Views/Shared/_SignupRail.cshtml) and its desktop dialog (Scripts/app/signup-rail.js).
   Rules are scoped to the card itself because the dialog moves it to the end of <body>, outside the page's own scope. */

.sr-card { background: #fff; border: 1px solid #dfe5ec; border-radius: 6px; color: #333; font-size: 14px; }
.sr-card p { margin: 0; }
.sr-card a:not(.btn) { color: #2a6db0; text-decoration: none; cursor: pointer; }
.sr-card a:not(.btn):hover { color: #1d4f86; text-decoration: underline; }

.sr-form-card { position: relative; overflow: hidden; transition: box-shadow 400ms ease; box-shadow: 0 4px 16px rgba(31, 78, 140, 0.06); }
.sr-form-card.sr-flash { box-shadow: 0 0 0 3px #e8961f, 0 10px 30px rgba(31, 78, 140, 0.18); }

.sr-banner { background: #fff3e8; border-bottom: 1px solid #f6dcc2; padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 700; color: #b8621b; }
.sr-banner-dark { background: #1f4e8c; border-bottom: none; padding: 12px 16px; color: #fff; }
.sr-body { padding: 18px 18px 20px 18px; }
.sr-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; color: #1f4e8c; text-align: center; margin-bottom: 10px !important; }
.sr-intro { font-size: 13px; color: #666; text-align: center; line-height: 1.5; margin-bottom: 10px !important; }

.sr-points { list-style: none; margin: 2px 0 12px 0; padding: 0; font-size: 13px; line-height: 1.85; color: #444; }
.sr-selected { margin-bottom: 10px; padding: 9px 12px; background: #f3f7fd; border: 1px solid #d6e2f3; border-radius: 4px; font-size: 12px; line-height: 1.45; color: #1f4e8c; }

.sr-alert-box { background: #f7f8fa; border: 1px solid #e3e8ee; border-radius: 4px; padding: 10px 12px; font-size: 13px; color: #333; line-height: 1.85; margin-bottom: 14px; }
.sr-alert-label { font-size: 12px; font-weight: 700; color: #3a76a8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.sr-tick { color: #3a9a4a; font-weight: 700; }
.sr-footnote { text-align: center; font-size: 12px; color: #666; }
.sr-body .form-group { margin-bottom: 10px; }
.sr-body .form-control { height: 40px; padding: 8px 10px; font-size: 14px; border-color: #ccd3db; }
.sr-body .form-control::placeholder { color: #8a929c; }
.sr-body .custom-control-label { font-size: 12px !important; color: #666; }
.sr-body .mb-4 { margin-bottom: 10px !important; }
.sr-body .divider { font-size: 11px; color: #999; }
.sr-body .btn-soft-primary { padding: 9px; font-size: 13px; font-weight: 600; }
.sr-body .font-size-1 { font-size: 12px; }

.sr-card a.sr-google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; background: #fff; border: 1px solid #ccd3db; border-radius: 6px; font-size: 14px; font-weight: 600; color: #222; transition: background 150ms ease, border-color 150ms ease; }
.sr-card a.sr-google:hover, .sr-card a.sr-google:focus { background: #f7f9fc; border-color: #b7c1cd; color: #222; text-decoration: none; }
.sr-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 12px; color: #999; }
.sr-or::before, .sr-or::after { content: ""; flex: 1; height: 1px; background: #e3e8ee; }
.sr-body .form-control { border-radius: 6px; }
.sr-body .input-group-merge .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sr-body .input-group-merge .input-group-text { border-color: #ccd3db; border-radius: 0 6px 6px 0; }
.sr-card .sr-btn-orange { background: #e8961f; color: #fff; border: none; border-radius: 6px; padding: 13px; font-size: 14px; font-weight: 700; }
.sr-card .sr-btn-orange:hover, .sr-card .sr-btn-orange:focus { background: #d4840f; color: #fff; text-decoration: none; }

.sr-testimonial { padding: 16px 18px; line-height: 1.55; }
.sr-testimonial-note { margin-top: 8px !important; font-size: 12px; color: #777; }

.sr-dialog-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background: rgba(20, 30, 50, 0.55); opacity: 0; transition: opacity 500ms ease; }
.sr-dialog-visible .sr-dialog-backdrop { opacity: 1; }
.sr-form-card.sr-card-dialog { position: fixed; z-index: 1050; margin: 0; max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: 0 24px 60px rgba(15, 30, 60, 0.35); }
.sr-dialog-close { display: none; }
.sr-card-dialog .sr-dialog-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 5px; right: 6px; z-index: 1; width: 30px; height: 30px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #444; font-size: 22px; line-height: 1; cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.sr-card-dialog .sr-dialog-close:hover, .sr-card-dialog .sr-dialog-close:focus { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); outline: none; }
html.sr-scroll-lock, body.sr-scroll-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .sr-dialog-backdrop { transition: none; }
}
