﻿@charset "UTF-8";
/* ============================================================
   RoadSafe — เรื่องของฉัน + เข้าสู่ระบบสำหรับประชาชน (D-12)
   ใช้กับ Public/MyReports.aspx และ Account/CitizenLogin.aspx
   ============================================================ */

.rs-my-head { margin-bottom: 1.25rem; }

.rs-my-head h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 .25rem;
  color: var(--rs-text, #16265a);
}

.rs-my-head p {
  margin: 0;
  color: var(--rs-text-muted, #5c6683);
}

.rs-my-error {
  background: var(--rs-danger-soft, #fdefe2);
  border: 1px solid var(--rs-danger, #e23a2e);
  color: var(--rs-danger, #e23a2e);
  border-radius: var(--rs-radius-md, .875rem);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
}

/* ---------- รายการเรื่อง ---------- */

.rs-my-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.rs-my-item {
  background: var(--rs-surface, #fff);
  border: 1px solid var(--rs-border-soft, #e4e9f2);
  border-radius: var(--rs-radius-md, .875rem);
  box-shadow: var(--rs-shadow-sm, 0 2px 10px rgba(20, 34, 77, .06));
  padding: 1rem 1.15rem;
}

.rs-my-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.rs-my-code {
  font-weight: 600;
  text-decoration: none;
  color: var(--rs-accent, #2f6fc0);
}

.rs-my-code:hover { text-decoration: underline; }

.rs-my-status {
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--rs-on-primary, #ffffff);
  white-space: nowrap;
}

.rs-my-title {
  font-weight: 500;
  color: var(--rs-text, #16265a);
}

.rs-my-meta {
  font-size: .82rem;
  color: var(--rs-text-muted, #5c6683);
  margin-top: .2rem;
}

.rs-my-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--rs-text-muted, #5c6683);
}

/* ---------- สถานะว่าง / เชิญชวนเข้าสู่ระบบ ---------- */

.rs-my-signin,
.rs-my-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--rs-surface, #fff);
  border: 1px dashed var(--rs-border, #c3ccdd);
  border-radius: var(--rs-radius-md, .875rem);
  color: var(--rs-text-muted, #5c6683);
}

.rs-my-signin .bi,
.rs-my-empty .bi {
  font-size: 2.25rem;
  display: block;
  margin-bottom: .75rem;
  color: var(--rs-text-faint, #9aa6c7);
}

.rs-my-signin p,
.rs-my-empty p { margin: 0 0 1rem; }

.rs-my-signin-note {
  font-size: .85rem;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

/* ---------- หน้าเข้าสู่ระบบประชาชน ---------- */

.rs-citizen-login {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.rs-citizen-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--rs-surface, #fff);
  border: 1px solid var(--rs-border-soft, #e4e9f2);
  border-radius: var(--rs-radius-lg, 1.25rem);
  box-shadow: var(--rs-shadow-md, 0 12px 34px rgba(20, 34, 77, .10));
  padding: 2rem 1.75rem;
}

.rs-citizen-icon {
  font-size: 2.5rem;
  color: var(--rs-primary, #16265a);
}

.rs-citizen-card h1 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: .5rem 0 .35rem;
  color: var(--rs-text, #16265a);
}

.rs-citizen-sub {
  font-size: .9rem;
  color: var(--rs-text-muted, #5c6683);
  margin-bottom: 1.5rem;
}

.rs-provider-list {
  display: grid;
  gap: .6rem;
  margin-bottom: 1rem;
}

.rs-provider {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: var(--rs-radius-sm, .5rem);
  border: 1px solid var(--rs-border, #c3ccdd);
  background: var(--rs-surface, #fff);
  color: var(--rs-text, #16265a);
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
}

.rs-provider:hover:enabled { border-color: var(--rs-primary, #16265a); }

.rs-provider:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rs-provider-line:enabled {
  border-color: var(--rs-success, #178048);
  color: var(--rs-success, #178048);
}

.rs-citizen-note {
  font-size: .82rem;
  color: var(--rs-text-muted, #5c6683);
  background: var(--rs-surface-muted, #f6f8fc);
  border-radius: var(--rs-radius-sm, .5rem);
  padding: .6rem .8rem;
  margin-bottom: 1rem;
}

.rs-citizen-note-sub {
  display: block;
  font-size: .78rem;
  color: var(--rs-text-faint, #9aa6c7);
}

.rs-citizen-error {
  background: var(--rs-danger-soft, #fdefe2);
  border: 1px solid var(--rs-danger, #e23a2e);
  color: var(--rs-danger, #e23a2e);
  border-radius: var(--rs-radius-sm, .5rem);
  padding: .6rem .8rem;
  margin-bottom: 1rem;
  font-size: .875rem;
}

.rs-citizen-alt {
  font-size: .85rem;
  color: var(--rs-text-muted, #5c6683);
  margin: 1rem 0 0;
}

/* ---- ยืนยันเบอร์มือถือ / รวมเรื่องเข้าบัญชี (LINE Login ระยะ 1 · 2026-10-06) ---- */
.rs-my-hint {
  background: var(--rs-primary-soft, #e8f0fb);
  border: 1px solid var(--rs-primary, #2f6fc0);
  border-radius: var(--rs-radius-sm, .5rem);
  color: var(--rs-text-body, #374151);
  padding: .65rem .85rem;
  margin-bottom: 1rem;
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.rs-vp-card {
  background: var(--rs-surface, #fff);
  border: 1px solid var(--rs-border, #c9d1e3);
  border-radius: var(--rs-radius-md, .75rem);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  max-width: 40rem;
}
.rs-vp-card h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .75rem; }
.rs-vp-card .rs-field { margin-bottom: .8rem; }
.rs-vp-sub { font-size: .95rem; font-weight: 600; margin: 1rem 0 .3rem; }
.rs-vp-hint { color: var(--rs-text-muted, #4b5563); font-size: .88rem; margin: 0 0 .6rem; }
.rs-vp-consent { display: flex; gap: .5rem; align-items: flex-start; padding-left: 0; margin-bottom: .9rem; font-size: .9rem; }
.rs-vp-consent input { flex: 0 0 auto; margin-top: .3rem; }
.rs-vp-code { max-width: 12rem; font-size: 1.3rem; letter-spacing: .3em; }
.rs-vp-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .35rem; }
.rs-vp-list li { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem .6rem; border: 1px solid var(--rs-border, #c9d1e3); border-radius: .5rem; overflow-wrap: anywhere; }
.rs-vp-list li input { margin-top: .3rem; flex: 0 0 auto; }
.rs-vp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.rs-vp-success {
  background: var(--rs-success-soft, #e3f5ea);
  border: 1px solid var(--rs-success, #178048);
  border-radius: var(--rs-radius-sm, .5rem);
  color: #0f5c33;
  padding: .65rem .85rem;
  margin-bottom: 1rem;
}

/* ---- เรื่องของฉัน: ผู้ที่ยังไม่เข้าสู่ระบบ แบบ SUTH PolCare (docs/RoadSafe_MyReports_Refresh_Plan_v0.1.0.md §3.1) ---- */
.rs-my-guide {
  max-width: 760px;
  background: var(--rs-surface, #fff);
  border: 1px solid var(--rs-border-soft, #e4e9f2);
  border-radius: var(--rs-radius-md, .875rem);
  box-shadow: var(--rs-shadow-sm, 0 2px 10px rgba(20, 34, 77, .06));
  padding: 1.4rem 1.5rem;
}
.rs-my-guide h2 { font-family: var(--rs-font-heading, 'Prompt', sans-serif); font-size: 1.1rem; font-weight: 700; color: var(--rs-text, #16265a); margin: 0 0 .8rem; }
.rs-my-steps { margin: 0 0 1.2rem; padding-left: 1.4rem; color: var(--rs-text-body, #3a466a); }
.rs-my-steps li { margin-bottom: .45rem; }
/* ปุ่ม LINE — สีเขียวตามแนวทางแบรนด์ LINE */
.rs-btn-line {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #06c755;
  color: #fff;
  border: 0;
  border-radius: .7rem;
  padding: .7rem 1.3rem;
  font-family: var(--rs-font-heading, 'Prompt', sans-serif);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(6, 199, 85, .28);
}
.rs-btn-line:hover { background: #05b14c; color: #fff; }
.rs-btn-line:focus-visible { outline: 3px solid #b6efcd; outline-offset: 2px; }
.rs-my-why { display: flex; gap: .6rem; margin-top: 1rem; padding: .75rem .9rem; border-radius: .7rem; background: var(--rs-primary-soft, #e8f0fb); font-size: .86rem; color: var(--rs-text-body, #3a466a); }
.rs-my-why .bi { color: var(--rs-accent, #2f6fc0); font-size: 1.1rem; }
.rs-my-alt { margin: 1rem 0 0; font-size: .88rem; color: var(--rs-text-muted, #5c6683); }
.rs-my-alt a { font-weight: 600; }
@media (max-width: 576px) {
  .rs-my-guide { padding: 1.1rem 1rem; }
  .rs-btn-line { width: 100%; justify-content: center; }
}
