﻿/* ============================================================
   Maurya Medical Store - Auth & Policy Pages CSS
   Font: Noto Serif (headings) + Source Sans 3 (body)
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{margin:0;padding:0;border:0;outline:0;display:block;max-width:100%;overflow-x:hidden}
html{scroll-behavior:smooth}
body{font-family:'Source Sans 3','Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.65;color:#1a2332;background:#f4f6fb;min-height:100vh;overflow-x:hidden}
h1,h2,h3,h4,h5{font-family:'Noto Serif',Georgia,serif;line-height:1.25;color:#0f2044}
a{text-decoration:none;color:inherit}

/* ---- GOV BAR ---- */
.gov-bar{background:#1a3c6e;color:rgba(255,255,255,.85);font-size:12px;border-bottom:3px solid #f0c040;margin:0;padding:0}
.gov-bar-inner{max-width:1200px;margin:0 auto;padding:7px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.gov-bar-left{display:flex;align-items:center;gap:8px;font-weight:600}
.gov-bar-right{display:flex;gap:16px;font-size:11px;opacity:.75}
@media(max-width:600px){.gov-bar-right{display:none}}

/* ---- HEADER ---- */
.auth-header{background:#fff;border-bottom:3px solid #1a3c6e;box-shadow:0 2px 8px rgba(0,0,0,.08);margin:0;padding:0;position:sticky;top:0;z-index:50;overflow:hidden}
.auth-header-inner{max-width:1200px;margin:0 auto;padding:0 24px;height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-icon{width:44px;height:44px;background:#1a3c6e;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-icon:has(img),.brand-icon.has-logo{background:transparent;border-radius:0}
.brand-icon img{width:44px;height:44px;object-fit:contain;display:block}
.brand-icon.brand-logo-wide{width:320px;max-width:48vw;height:56px}
.brand-icon.brand-logo-wide img{width:100%;height:100%;object-fit:contain}
.logo-protect{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.brand-name{font-family:'Noto Serif',serif;font-size:17px;font-weight:700;color:#0f2044;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.brand-tag{font-size:11px;color:#64748b;margin-top:1px}
.header-links{display:flex;align-items:center;gap:18px;flex:1;justify-content:flex-start;overflow:hidden}
.public-links,.auth-actions{display:flex;align-items:center;gap:8px}
.auth-actions{margin-left:auto}
.header-links a{font-size:13px;font-weight:600;color:#64748b;padding:7px 14px;border-radius:8px;transition:.2s}
.header-links .login-link{display:inline-flex;align-items:center;gap:6px;background:#1a3c6e;color:#fff;padding:9px 18px;border-radius:8px}
.header-links .login-link:hover{background:#0f2044;color:#fff}
.header-links .register-link{background:#f0c040;color:#0a1628;padding:9px 20px;border-radius:8px;font-size:13px;font-weight:700}
.header-links .register-link:hover{background:#0f2044;color:#fff}
.header-links a:hover{background:#f1f5f9;color:#1a3c6e}
.header-links .active-link{background:#1a3c6e;color:#fff}
.header-links .active-link:hover{background:#0f2044}
.auth-menu-toggle{display:none;background:none;border:0;padding:8px;margin-left:auto;cursor:pointer;color:#1a3c6e}
.auth-menu-toggle span{display:block;width:22px;height:2px;background:#1a3c6e;border-radius:2px;margin:4px 0}

/* ---- AUTH PAGE LAYOUT ---- */
.auth-page{min-height:calc(100vh - 130px);display:flex;align-items:center;justify-content:center;padding:40px 20px;background:linear-gradient(135deg,#0a1628 0%,#1a3c6e 50%,#1e5fa8 100%)}
.auth-container{width:100%;max-width:1020px;display:grid;grid-template-columns:1fr 1.4fr;gap:0;border-radius:20px;overflow:hidden;box-shadow:0 32px 80px rgba(0,0,0,.4)}

/* Info side */
.auth-info{background:linear-gradient(160deg,#0f2044 0%,#1a3c6e 100%);padding:44px 36px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.ai-logo{display:flex;align-items:center;gap:12px;margin-bottom:32px}
.ai-logo-box{width:50px;height:50px;background:rgba(255,255,255,.12);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ai-brand{font-family:'Noto Serif',serif;font-size:18px;font-weight:700;color:#fff;line-height:1.2}
.ai-brand-tag{font-size:11px;color:rgba(255,255,255,.5);margin-top:2px}
.ai-title{font-family:'Noto Serif',serif;font-size:26px;font-weight:700;color:#fff;margin-bottom:12px}
.ai-desc{font-size:14px;color:rgba(255,255,255,.68);line-height:1.8;margin-bottom:28px}
.ai-list{display:flex;flex-direction:column;gap:11px;margin-bottom:28px}
.ai-item{display:flex;align-items:center;gap:11px;font-size:13.5px;color:rgba(255,255,255,.82)}
.ai-dot{width:7px;height:7px;border-radius:50%;background:#4ade80;flex-shrink:0}
.ai-note{background:rgba(240,192,64,.12);border:1px solid rgba(240,192,64,.3);border-radius:10px;padding:14px 16px;font-size:12.5px;color:#f0c040;line-height:1.6;display:flex;align-items:flex-start;gap:9px}
.ai-footer{margin-top:auto;padding-top:24px;border-top:1px solid rgba(255,255,255,.1);font-size:11px;color:rgba(255,255,255,.3)}
.ai-footer a{color:rgba(255,255,255,.45)}
.ai-footer a:hover{color:#f0c040}

/* Form side */
.auth-form-side{background:#fff;display:flex;flex-direction:column}
/* Flash */
.flash{display:flex;align-items:flex-start;gap:10px;padding:14px 20px;font-size:13.5px;font-weight:500;border-bottom:1px solid transparent}
.flash-err{background:#fef2f2;color:#991b1b;border-bottom-color:#fecaca}
.flash-ok{background:#f0fdf4;color:#166534;border-bottom-color:#bbf7d0}
.flash-close{margin-left:auto;background:none;border:none;cursor:pointer;font-size:20px;line-height:1;opacity:.5;flex-shrink:0}
.flash-close:hover{opacity:1}
/* Tabs */
.auth-tabs{display:flex;background:#f8fafc;border-bottom:2px solid #e2e8f0}
.atab{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:15px 6px;background:none;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;cursor:pointer;font-size:13px;font-weight:600;color:#64748b;transition:.2s;font-family:'Source Sans 3',sans-serif}
.atab:hover{color:#1a3c6e;background:#f1f5f9}
.atab.active{color:#1a3c6e;border-bottom-color:#1a3c6e;background:#fff}
/* Form body */
.form-body{padding:28px 32px 32px;flex:1;overflow-y:auto;max-height:72vh}
.form-head{margin-bottom:20px}
.form-head h3{font-family:'Noto Serif',serif;font-size:21px;font-weight:700;color:#0f2044;margin-bottom:4px}
.form-head p{font-size:13px;color:#64748b}
.fsec{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#1a3c6e;margin:18px 0 12px;padding-bottom:6px;border-bottom:1px solid #e2e8f0}
.fg{margin-bottom:13px}
.flabel{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:5px}
.req{color:#dc2626}
.finput{width:100%;padding:10px 14px;border:1.5px solid #d1d5db;border-radius:8px;font-size:14px;color:#1a2332;background:#fff;transition:.2s;outline:none;font-family:'Source Sans 3',sans-serif}
.finput:focus{border-color:#1a3c6e;box-shadow:0 0 0 3px rgba(26,60,110,.1)}
textarea.finput{min-height:68px;resize:vertical}
.fhint{font-size:11px;color:#94a3b8;margin-top:4px}
.frow2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.frow3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.iw{position:relative}
.iw .finput{padding-left:40px}
.iicon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none;width:16px;height:16px}
.ptoggle{position:absolute;right:11px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#94a3b8;display:flex;align-items:center;padding:2px}
.ptoggle:hover{color:#1a3c6e}
.forgot-lnk{font-size:13px;color:#1a3c6e;font-weight:600}
.forgot-lnk:hover{text-decoration:underline}
.fnotice{display:flex;align-items:flex-start;gap:8px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:12px 14px;font-size:12.5px;color:#1e40af;margin-bottom:14px;line-height:1.6}
.fcheck{display:flex;align-items:flex-start;gap:9px;margin-bottom:14px;font-size:13px;color:#374151}
.fcheck input[type=checkbox]{width:16px;height:16px;margin-top:2px;flex-shrink:0;accent-color:#1a3c6e}
.fcheck a{color:#1a3c6e;font-weight:600}
.fcheck a:hover{text-decoration:underline}
.submit-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;background:#1a3c6e;color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;transition:.2s;font-family:'Source Sans 3',sans-serif;margin-top:4px}
.submit-btn:hover{background:#0f2044;transform:translateY(-1px)}
.submit-btn.green{background:#166534}
.submit-btn.green:hover{background:#14532d}
.switch-txt{text-align:center;margin-top:14px;font-size:13px;color:#64748b}
.switch-txt a{color:#1a3c6e;font-weight:700}
.switch-txt a:hover{text-decoration:underline}

/* ---- POLICY PAGE LAYOUT ---- */
.policy-page{min-height:calc(100vh - 130px);padding:48px 20px}
.policy-container{max-width:860px;margin:0 auto}
.policy-card{background:#fff;border-radius:16px;box-shadow:0 4px 24px rgba(0,0,0,.08);overflow:hidden}
.policy-header{background:linear-gradient(135deg,#0f2044,#1a3c6e);padding:36px 40px;color:#fff}
.policy-header-badge{display:inline-flex;align-items:center;gap:7px;background:rgba(240,192,64,.15);border:1px solid rgba(240,192,64,.35);color:#f0c040;font-size:11px;font-weight:700;padding:5px 12px;border-radius:20px;margin-bottom:14px;text-transform:uppercase;letter-spacing:.8px}
.policy-header h1{font-family:'Noto Serif',serif;font-size:28px;font-weight:700;color:#fff;margin-bottom:8px}
.policy-header p{font-size:14px;color:rgba(255,255,255,.65);line-height:1.7}
.policy-meta{display:flex;gap:20px;margin-top:16px;flex-wrap:wrap}
.policy-meta span{font-size:12px;color:rgba(255,255,255,.5);display:flex;align-items:center;gap:6px}
.policy-body{padding:36px 40px}
.policy-toc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:20px 24px;margin-bottom:32px}
.policy-toc h4{font-family:'Noto Serif',serif;font-size:14px;font-weight:700;color:#0f2044;margin-bottom:12px}
.policy-toc ol{padding-left:18px}
.policy-toc li{font-size:13px;color:#1a3c6e;margin-bottom:6px}
.policy-toc a{color:#1a3c6e;font-weight:600}
.policy-toc a:hover{text-decoration:underline}
.policy-section{margin-bottom:32px}
.policy-section h2{font-family:'Noto Serif',serif;font-size:19px;font-weight:700;color:#0f2044;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #e2e8f0;display:flex;align-items:center;gap:10px}
.policy-section h2 .sec-num{background:#1a3c6e;color:#fff;font-size:12px;font-weight:700;width:26px;height:26px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:'Source Sans 3',sans-serif}
.policy-section h3{font-family:'Noto Serif',serif;font-size:15px;font-weight:700;color:#1a3c6e;margin:16px 0 8px}
.policy-section p{font-size:14px;color:#374151;line-height:1.8;margin-bottom:12px}
.policy-section ul,.policy-section ol{padding-left:20px;margin-bottom:12px}
.policy-section li{font-size:14px;color:#374151;line-height:1.8;margin-bottom:6px}
.policy-section strong{color:#0f2044}
.policy-highlight{background:#eff6ff;border-left:4px solid #1a3c6e;border-radius:0 8px 8px 0;padding:14px 18px;margin:16px 0;font-size:13.5px;color:#1e40af;line-height:1.7}
.policy-warning{background:#fef9c3;border-left:4px solid #f0c040;border-radius:0 8px 8px 0;padding:14px 18px;margin:16px 0;font-size:13.5px;color:#854d0e;line-height:1.7}
.policy-danger{background:#fef2f2;border-left:4px solid #dc2626;border-radius:0 8px 8px 0;padding:14px 18px;margin:16px 0;font-size:13.5px;color:#991b1b;line-height:1.7}
.policy-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:13.5px}
.policy-table th{background:#1a3c6e;color:#fff;padding:10px 14px;text-align:left;font-weight:600}
.policy-table td{padding:10px 14px;border-bottom:1px solid #f1f5f9;color:#374151}
.policy-table tr:nth-child(even) td{background:#f8fafc}
.policy-footer-nav{display:flex;justify-content:space-between;align-items:center;padding:20px 40px;border-top:1px solid #f1f5f9;flex-wrap:wrap;gap:12px}
.policy-footer-nav a{font-size:13px;font-weight:600;color:#1a3c6e;display:flex;align-items:center;gap:6px}
.policy-footer-nav a:hover{text-decoration:underline}

/* ---- FOOTER ---- */
.page-footer{background:#0a1628;color:rgba(255,255,255,.5);padding:20px 24px;text-align:center;font-size:12px}
.page-footer a{color:rgba(255,255,255,.5);margin:0 8px}
.page-footer a:hover{color:#f0c040}

/* ---- RESPONSIVE ---- */
@media(max-width:900px){
  .auth-container{grid-template-columns:1fr;max-width:520px;margin:0 auto}
  .auth-info{display:none}
  .auth-page{min-height:calc(100svh - 130px);padding:28px 16px;align-items:center;justify-content:center;background:linear-gradient(135deg,#0a1628 0%,#1a3c6e 100%)}
  .auth-container{border-radius:16px}
}
@media(max-width:600px){
  html,body{width:100%;max-width:100vw;overflow-x:hidden!important}
  .gov-bar{display:none}
  .auth-header{position:fixed;top:0;left:0;right:0}
  .auth-header{overflow:visible}
  .auth-header-inner{height:58px;padding:0 10px;gap:8px;overflow:visible;max-width:100vw;width:100%}
  .brand{gap:8px;flex:1;min-width:0;max-width:calc(100vw - 60px)}
  .brand-icon{width:36px;height:36px;border-radius:8px}
  .brand-icon svg{width:22px;height:22px}
  .brand-icon img{width:36px;height:36px}
  .brand-icon.brand-logo-wide{width:220px;max-width:calc(100vw - 72px);height:44px}
  .brand-name{font-size:14px;max-width:100%}
  .frow2,.frow3{grid-template-columns:1fr}
  .form-body{padding:20px 18px 24px;max-height:none;overflow:visible}
  .policy-body,.policy-header{padding:24px 20px}
  .policy-footer-nav{padding:16px 20px;flex-direction:column;align-items:flex-start}
  .auth-menu-toggle{display:block;flex:0 0 auto}
  .header-links{
    display:none;position:absolute;top:58px;left:0;right:0;max-width:none;
    background:#fff;border-top:1px solid #e2e8f0;border-bottom:3px solid #1a3c6e;
    box-shadow:0 10px 24px rgba(15,23,42,.14);padding:6px 10px;z-index:100;
    flex-direction:column;align-items:stretch;gap:0;overflow:visible
  }
  .header-links.open{display:flex}
  .public-links,.auth-actions{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-left:0;width:100%}
  .auth-actions{padding-top:6px;margin-top:6px;border-top:1px solid #e2e8f0}
  .header-links .hl-text{display:inline}
  .header-links a,.header-links .register-link{
    display:flex!important;align-items:center;justify-content:space-between;
    width:100%;padding:12px 14px;font-size:14px;border-radius:8px;white-space:normal
  }
  .auth-tabs .atab{padding:12px 4px;font-size:12px;gap:4px}
  .auth-tabs .atab span{font-size:11px}
  .auth-form-side{border-radius:0 0 16px 16px}
  .policy-table{font-size:12px}
  .policy-table th,.policy-table td{padding:8px 10px}
  .policy-section h2{font-size:16px}
  .policy-header h1{font-size:22px}
  .gov-bar-right{display:none}
  .brand-tag{display:none}
  .auth-page{min-height:100svh;padding:82px 12px 24px;align-items:center;justify-content:center}
  .policy-page{padding-top:82px}
  .auth-container{max-width:min(440px,100%);border-radius:18px;box-shadow:0 22px 56px rgba(0,0,0,.32)}
  .auth-form-side{min-width:0;width:100%;border-radius:18px}
  .form-head{text-align:center;margin-bottom:18px}
  .form-head h3{font-size:20px}
  .form-head p{max-width:280px;margin:0 auto}
  .page-footer{padding:14px 10px}
  .page-footer a{display:inline-block;margin:2px 5px}
}
@media(max-width:400px){
  .auth-page{padding:76px 10px 18px}
  .form-body{padding:16px 14px 20px}
  .atab span{display:none}
  .submit-btn{font-size:14px;padding:12px 16px}
}
