/* Login page styles. Scoped to _LoginLayout (the login page only).
   Mirrors design/design_handoff_oysterdrive/Login.dc.html 1:1.
   Will move to Styles/pages/login.scss in Phase 3. */

/* ---------- Page chrome ---------- */

body.od-login-body {
    margin: 0;
    background: #eef0e7;
    font-family: Karla, sans-serif;
    color: #2c2f27;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---------- Main (full-width flex container; the card is centered inside) ----------
   <main> is a direct child of body. To keep <main> stretching to the
   body's full width (so the Bootstrap .container-xxl inside can size
   the card via its col-12 col-md-6 col-lg-4 grid), we give <main> a
   flex layout here. The body's display: grid + place-items: center
   was previously constraining <main> to its content's intrinsic
   min-content width, which cascaded into a narrow card. */

.od-login-main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 575.98px) {
    .od-login-main { padding: 16px 0; }
}

/* Corner watermarks. The two .dc.html icons overflow the page edges
   (bottom-right at right:-160px, top-left at left:-120px) so they
   read as ghost shapes rather than decorative elements. */
.od-login-watermark {
    position: absolute;
    pointer-events: none;
}
.od-login-watermark img {
    display: block;
    width: 100%;
    height: auto;
}
.od-login-watermark--top {
    left: -120px;
    top: -140px;
    width: 420px;
    max-width: 60vw;
    opacity: .05;
    transform: scaleX(-1);
}
.od-login-watermark--bottom {
    right: -160px;
    bottom: -180px;
    width: 640px;
    max-width: 70vw;
    opacity: .07;
}
@media (max-width: 575.98px) {
    .od-login-watermark--top    { width: 240px; left: -90px;  top: -80px;  opacity: .04; }
    .od-login-watermark--bottom { width: 320px; right: -100px; bottom: -120px; opacity: .05; }
}

/* ---------- Shell (column-based; Bootstrap grid handles width) ---------- */

.od-shell-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 48px 16px;
    position: relative;
    z-index: 1;
}
@media (max-width: 575.98px) {
    .od-shell-login { padding: 24px 12px; gap: 22px; }
}

/* ---------- Logo + kicker above the card ---------- */

.od-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}
.od-logo__wordmark {
    width: 260px;
    height: auto;
    display: block;
}

/* ---------- The card ---------- */

.od-login-card {
    width: 100%;
    background: #fbfaf6;
    border-radius: 12px;
    padding: 40px 40px 36px;
    box-shadow: 0 14px 40px rgba(44, 47, 39, .12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
@media (max-width: 575.98px) {
    .od-login-card { padding: 28px 22px 24px; }
}

.od-h1-login {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    color: #2c2f27;
}

/* ---------- Field (label + input) ---------- */

.od-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.od-field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.od-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #54584b;
    margin: 0;
}
.od-input {
    font-family: Karla, sans-serif;
    font-size: 15px;
    color: #2c2f27;
    background: #fff;
    border: 1px solid #d4d6c8;
    border-radius: 8px;
    padding: 13px 16px;
    outline: none;
    width: 100%;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.od-input::placeholder { color: #9aa08e; }
.od-input:focus {
    border-color: #6b7f5e;
    box-shadow: 0 0 0 3px rgba(107, 127, 94, .18);
}
.od-input.is-invalid {
    border-color: #a3722e;
}

/* ---------- "Keep me signed in" checkbox row ---------- */

.od-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #54584b;
    cursor: pointer;
}
.od-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6b7f5e;
    margin: 0;
    cursor: pointer;
}

/* ---------- Forgot? link ---------- */

.od-link-sage {
    color: #6b7f5e;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.od-link-sage:hover,
.od-link-sage:focus {
    color: #2c2f27;
    text-decoration: underline;
}

/* ---------- "Or" divider (hairline · or · hairline) ---------- */

.od-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0;
}
.od-divider__rule {
    flex: 1;
    height: 1px;
    background: rgba(44, 47, 39, .14);
}
.od-divider__label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa08e;
}

/* ---------- Buttons (primary ink pill + secondary outlined pill) ---------- */

.od-btn-primary,
.od-btn-secondary {
    display: block;
    width: 100%;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 99px;
    padding: 14px 22px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    font-family: Karla, sans-serif;
}
.od-btn-primary {
    background: #2c2f27;
    color: #f3f1e9;
    border: 1px solid #2c2f27;
    margin-top: 4px;
}
.od-btn-primary:hover,
.od-btn-primary:focus {
    background: #6b7f5e;
    border-color: #6b7f5e;
    color: #f3f1e9;
}
.od-btn-secondary {
    background: transparent;
    color: #2c2f27;
    border: 1px solid #2c2f27;
}
.od-btn-secondary:hover,
.od-btn-secondary:focus {
    background: #2c2f27;
    color: #f3f1e9;
}

/* Google "G" badge inside the secondary button. */
.od-google-g {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    background: #2c2f27;
    color: #f3f1e9;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    margin-right: 8px;
    vertical-align: -3px;
}
.od-btn-secondary:hover .od-google-g,
.od-btn-secondary:focus .od-google-g {
    background: #f3f1e9;
    color: #2c2f27;
}

/* ---------- Banner (success/info/warning) ---------- */

.od-banner-success,
.od-banner-info,
.od-banner-warning {
    padding: 14px 20px;
    border-radius: 6px;
    color: #2c2f27;
    font-size: 15px;
    line-height: 1.45;
    border-left-width: 3px;
    border-left-style: solid;
}
.od-banner-success { background: #fbfaf6; border-left-color: #6b7f5e; }
.od-banner-info    { background: #fbfaf6; border-left-color: #6b7f5e; }
.od-banner-warning { background: #fdf9ef; border-left-color: #a3722e; }

/* ---------- Lines below the card ---------- */

.od-signup-line {
    font-size: 13px;
    color: #54584b;
    margin: 0;
    text-align: center;
}
.od-link-back {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6f7365;
    text-decoration: none;
}
.od-link-back:hover,
.od-link-back:focus {
    color: #2c2f27;
}