/* DAM Capital Research Portal — reproduces Docs/ResearchPortal/client_login.png,
   client_login_mobile.png and research_listing.png. */

:root {
    --dam-navy:  #16365c;
    --dam-red:   #8c1226;
    --dam-red-2: #a8172f;
    --ink:       #1c2430;
    --muted:     #6b7480;
    --line:      #e2e6ea;
    --bg:        #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
/* ── brand marks ──────────────────────────────────────────────────────────────
   The artwork is a real image at wwwroot/images/logo.svg. Fixed WIDTH 130px with
   height:auto (user request 2026-11-27), so the file's aspect ratio is preserved. */
.login-logo-img { width: 130px; height: auto; max-width: 100%; display: block; }
.brand-img      { width: 130px; height: auto; display: block; }


/* ── login ───────────────────────────────────────────────────────────────── */
.login-body { min-height: 100vh; display: flex; flex-direction: column; }
.login-body main { flex: 1; }

.login-wrap {
    min-height: 78vh;
    display: flex; align-items: center; justify-content: center;
    gap: 8vw; padding: 32px 24px; flex-wrap: wrap;
}

.login-logo { text-align: center; }

.login-card {
    width: 100%; max-width: 410px;
    background: #fff; border-radius: 22px; padding: 34px 38px 30px;
    box-shadow: 0 10px 40px rgba(20, 35, 60, .13);
}
.login-card h1 {
    margin: 0 0 26px; text-align: center;
    font-size: 26px; font-weight: 700; color: var(--dam-navy);
    font-family: Georgia, "Times New Roman", serif;
}

.field { position: relative; margin-bottom: 15px; }
.field-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: #9aa2ab; display: flex;
}
.field input {
    width: 100%; padding: 15px 18px 15px 46px;
    border: 1px solid transparent; border-radius: 26px;
    background: #eceef0; font-size: 15px; color: var(--ink);
}
.field input::placeholder { color: #9aa2ab; }
.field input:focus {
    outline: none; border-color: var(--dam-navy); background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 54, 92, .12);
}

.forgot { text-align: center; margin: 16px 0 20px; }
.forgot a { color: var(--dam-navy); font-size: 14px; text-decoration: underline; }

.login-btn {
    display: block; width: 205px; margin: 0 auto;
    padding: 13px 0; border: 0; border-radius: 26px; cursor: pointer;
    background: var(--dam-red); color: #fff; font-size: 16px; font-weight: 600;
}
.login-btn:hover { background: var(--dam-red-2); }

.signup { text-align: center; margin-top: 20px; font-size: 14px; font-weight: 600; }
.signup a { color: var(--ink); text-decoration: underline; margin-left: 4px; }

.login-error {
    background: #fdecee; border: 1px solid #f3c3ca; color: #8c1226;
    padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}

.login-footer {
    text-align: center; padding: 20px 16px 28px;
    color: var(--dam-red); font-weight: 700; font-size: 15px;
}
.login-footer a { color: var(--dam-red); }

/* the supplied mobile mock: logo drops out, card centres */
@media (max-width: 760px) {
    .login-wrap { gap: 0; }
    .login-logo { display: none; }
    .login-card { max-width: 340px; }
}

/* ── listing ─────────────────────────────────────────────────────────────── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 26px; border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; line-height: 1; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.user-chip {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--dam-red); font-weight: 600; font-size: 15px;
}
.logout-form { margin: 0; }
.logout-btn {
    background: none; border: 1px solid var(--line); border-radius: 16px;
    padding: 5px 14px; cursor: pointer; color: var(--muted); font-size: 13px;
}
.logout-btn:hover { color: var(--dam-red); border-color: var(--dam-red); }

.filterbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: #dfe1e3; padding: 12px 16px; margin: 14px 18px 0; border-radius: 3px;
}
.showing { font-size: 14px; color: #333; margin-right: 4px; }
.showing b {
    background: #fff; border-radius: 12px; padding: 2px 10px; margin-left: 4px;
    font-weight: 600;
}
.filterbar input[type=date], .filterbar select {
    padding: 7px 10px; border: 1px solid #b9bec4; border-radius: 3px;
    background: #fff; font-size: 13px; min-width: 165px; color: var(--ink);
}
.submit-btn {
    margin-left: auto; padding: 8px 22px; border: 0; border-radius: 3px;
    background: var(--dam-red); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.submit-btn:hover { background: var(--dam-red-2); }

/* wide tables scroll inside their own box — the page never scrolls sideways */
.table-wrap { margin: 14px 18px 30px; overflow-x: auto; }

table.research { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
table.research thead th {
    background: var(--dam-navy); color: #fff; text-align: left;
    padding: 12px 14px; font-weight: 600; white-space: nowrap;
}
table.research tbody td {
    padding: 13px 14px; border-bottom: 1px solid #e9edf1; vertical-align: top;
}
table.research tbody tr:hover { background: #f7f9fb; }
td.date { color: #2f7fd0; white-space: nowrap; }
td.name { max-width: 430px; }
td.dl { text-align: center; width: 62px; }

.dl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 26px; border-radius: 4px;
    background: #f4523f; color: #fff; text-decoration: none; font-size: 14px;
}
.dl-btn:hover { background: #dc4231; }

.empty-state { margin: 40px 18px; color: var(--muted); font-size: 15px; }

.pager { display: flex; align-items: center; gap: 18px; margin: 0 18px 40px; font-size: 14px; }
.pager a { color: var(--dam-navy); text-decoration: none; font-weight: 600; }
.pager a:hover { text-decoration: underline; }
.pager span { color: var(--muted); }

/* Reset sits beside Submit; deliberately quieter than the primary action. */
.reset-btn {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border: 1px solid #b9bec4; border-radius: 3px;
    background: #fff; color: #444; font-weight: 600; font-size: 14px;
    text-decoration: none; line-height: 1.35;
}
.reset-btn:hover { border-color: var(--dam-red); color: var(--dam-red); }

/* Get Started (sign-up email check) */
.getstarted-lead { text-align: center; font-size: 15px; color: var(--ink); margin: -12px 0 22px; }
.getstarted-sent { text-align: center; font-size: 15px; line-height: 1.5; color: var(--ink); margin: 22px 0 4px; }
.getstarted-back { text-align: center; margin-top: 10px; font-size: 14px; }
.getstarted-back a { color: var(--muted); text-decoration: underline; }

/* Forgot / reset pages */
.login-help { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: -8px 0 20px; }
.login-note {
    background: #eef6ef; border: 1px solid #c6e2c9; color: #22603a;
    padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5;
}

/* Set Password (link from the Get Started mail) — replica of the old site */
.setpwd-verified { text-align: center; font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.setpwd-tick { color: #28a745; vertical-align: -2px; margin-right: 2px; }
.setpwd-email { color: var(--dam-red); overflow-wrap: break-word; }   /* whole address; breaks only if longer than a line */
.setpwd-lead { text-align: center; font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.setpwd-btn { margin-top: 26px; }

/* Non-DAM owner logos (wwwroot/Logo/<owner>-logo.png) are wordmarks: give them more width */
.login-logo-img.logo-wide { width: 260px; }
.brand-img.logo-wide      { width: 170px; }

/* Research listed without an attachment: no download button */
.dl-none { display: inline-block; width: 30px; text-align: center; color: var(--muted); }
