﻿/* ============================================================
   SURVEYOURS — LOGIN PAGE, CLEAN CSS
   ============================================================
   One file, from scratch, for Login.cshtml
   (/Account/Login), to match the homepage, Topics
   and Topic Details pages — #EDF0F3 page, white
   cards, navy #08284E, red #D01C03 only on
   actions, Poppins.

   How to use it:
   1. Save this file as updated_css/surveyours-login.css
   2. In Login.cshtml, add this link at the top
      of the page file:
        <link href="~/updated_css/surveyours-login.css" rel="stylesheet" asp-append-version="true" />
   3. Delete the inline <style> block at the top
      of Login.cshtml — the @import of meyer-reset
      in it can reset other pages' styles, and the
      one rule in it (ul list-style) now lives in
      this file, Section 2.
   4. No other Razor changes are needed. The
      header and footer are NOT in this file —
      they come from LoginLayout
      (surveyours-shared.css + header_footer.css).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap');

/* ---------- 1. TOKENS ---------- */
:root {
    --sv-page: #EDF0F3;
    --sv-card: #FFFFFF;
    --sv-navy: #08284E;
    --sv-navy-soft: #E8EEF4;
    --sv-ink: #22364C;
    --sv-muted: #52677E;
    --sv-border: #D8DEE5;
    --sv-red: #D01C03;
    --sv-red-dark: #A81502;
    --sv-radius: 14px;
    --sv-shadow: 0 1px 3px rgba(19,46,77,.07), 0 8px 24px rgba(19,46,77,.05);
}

/* ---------- 2. PAGE ---------- */
body {
    background: var(--sv-page) !important;
    color: var(--sv-ink);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

h1, h2, h3, h6 {
    font-family: 'Poppins',sans-serif !important;
    color: var(--sv-navy);
}

ul {
    list-style: none !important;
    text-align: left !important
}

/* ---------- 3. LOGIN CARD ---------- */
/* The form sits on the grey page in the Razor,
   with no card around it. Give it the same
   white card as every other page. */
.login-card {
    background: var(--sv-card) !important;
    border: 1px solid #E6EAF0 !important;
    border-radius: var(--sv-radius) !important;
    box-shadow: var(--sv-shadow) !important;
    padding: 26px 28px !important;
    margin-top: 0 !important;
}

/* ---------- 4. TITLE ---------- */
.login-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--sv-navy) !important;
    letter-spacing: -.2px;
    margin: 10px 0 6px !important;
}

    .login-title em {
        font-style: normal !important;
        color: var(--sv-navy) !important;
    }

    .login-card .lead,
    .login-title + .lead {
        font-size: 15px !important;
        color: var(--sv-muted) !important;
        margin: 0 0 8px !important;
        font-weight: 400 !important;
    }

/* ---------- 5. FIELDS ---------- */
.login-card label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--sv-navy) !important;
    margin: 0 0 8px !important;
}

.login-card .input,
.login-card input.form-control {
    width: 100% !important;
    min-height: 48px !important;
    border: 1.5px solid var(--sv-border) !important;
    border-radius: 11px !important;
    padding: 12px 14px !important;
    font-size: 14.5px !important;
    color: var(--sv-ink) !important;
    background: #FBFCFD !important;
}

    .login-card .input:focus,
    .login-card input.form-control:focus {
        outline: none !important;
        border-color: var(--sv-navy) !important;
        background: #fff !important;
        box-shadow: none !important;
    }
/* Password eye toggle — in the screenshot it
   sits below the password field, in its own
   little box. Put it inside the field, on the
   right, where it belongs. The password column
   is already position:relative in the Razor. */
.pw-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 38px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--sv-muted) !important;
    font-size: 18px !important;
    padding: 6px !important;
    line-height: 1 !important;
}

    .pw-toggle:hover {
        color: var(--sv-navy) !important
    }

/* ---------- 6. LOG IN BUTTON ---------- */
/* Red, like every other action on the site —
   not the plain Bootstrap blue in the
   screenshot. Centred, 240px wide, 50px tall. */
.login-card .cta .btn-primary,
.login-card .btn-primary {
    background: var(--sv-red) !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    min-width: 240px !important;
    min-height: 50px !important;
    padding: 0 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Give the action button room to breathe —
   a gap between the terms row and the button,
   the way the homepage gives its sections
   space instead of crowding them. */
.login-card .cta {
    margin-top: 28px !important
}

    .login-card .cta .btn-primary:hover,
    .login-card .btn-primary:hover {
        background: var(--sv-red-dark) !important
    }

/* ---------- 7. REGISTER LINK ---------- */
.login-card .register {
    text-align: center !important;
    font-size: 14px !important;
    color: var(--sv-muted) !important;
    margin-top: 18px !important;
}

    .login-card .register a {
        color: var(--sv-red) !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

        .login-card .register a:hover {
            text-decoration: underline !important
        }

/* ---------- 8. MOBILE ---------- */
@media (max-width:560px) {
    .login-card {
        padding: 20px 18px !important
    }

    .login-title {
        font-size: 25px !important
    }
}

/* ---------- 9. SIGN UP CHECKBOX ---------- */
/* On the Sign Up page (which shares this file),
   the "I have read and agree…" checkbox was
   stacking above its sentence instead of sitting
   beside it, because the label was a block. Put
   the checkbox and its text in one flex row,
   checkbox on the left, text on the right. */
.login-card label:has(> input[type="checkbox"]),
.login-card div:has(> input[type="checkbox"]) {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
}

.login-card input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 3px 0 0 !important;
    accent-color: var(--sv-navy) !important;
    cursor: pointer !important;
}

/* ---------- 10. SIGN UP NOTE ---------- */
/* Small note inside the card ("Your thoughts
   are strictly for the community..."). */
.signup-note {
    font-size: 14px !important;
    color: var(--sv-muted) !important;
    text-align: center !important;
    margin: 0 0 20px !important;
    line-height: 1.55 !important;
}

    .signup-note strong {
        color: var(--sv-navy) !important
    }
/* Helper text under the date field. */
.dob-helper {
    font-size: 13px !important;
    color: var(--sv-muted) !important;
    text-align: center !important;
    margin: 8px 0 0 !important;
}
