/* ============================================================
   Porsche-inspired theme (Identity-auth FINAL geometry)
   ============================================================ */

:root{
  --accent: #d5001c;
  --link: #0b57d0;

  --auth-radius: 5px;           /* tighter corners */
  --auth-height: 56px;

  --field-border: #7b7f87;      /* darker default border */
  --field-border-hover: #6c7078;
  --field-border-focus: #2b2e33;

  --btn-black-top: #1a1a1a;
  --btn-black-mid: #0c0c0c;
  --btn-black-bot: #000000;
}
/* Global Porsche base */
html, body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

h1, h2, h3{
  letter-spacing: -0.02em;
}

a{
  color: var(--link);
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */

.card{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

/* ------------------------------------------------------------
   Auth layout
   ------------------------------------------------------------ */

.auth-shell{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  /* fixed header offset + breathing room */
  padding: calc(var(--header-h) + 40px) 20px 56px;
}

.auth-card{
  width: 100%;
  max-width: 460px;
  padding: 26px;
}

.auth-head{
  margin-bottom: 18px;
}

.auth-title{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.auth-sub{
  margin: 8px 0 0;
  color: rgba(0,0,0,0.65);
  line-height: 1.35;
}

.auth-form{
  margin-top: 18px;
}

/* ------------------------------------------------------------
   Floating-label fields (tight + defined)
   ------------------------------------------------------------ */

.pfield{
  position: relative;
  margin: 16px 0;
}

.pinput{
  width: 100%;
  height: var(--auth-height);
  padding: 20px 16px 12px;
  font-size: 16px;
  background: #ffffff;

  border: 2px solid var(--field-border);
  border-radius: var(--auth-radius);

  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.pinput:hover{
  border-color: var(--field-border-hover);
}

.pinput:focus{
  border-color: var(--field-border-focus);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.10);
}

/* Floating label */
.plabel{
  position: absolute;
  left: 14px;
  top: 18px;
  padding: 0 6px;
  background: #fff;

  font-size: 15px;
  color: rgba(0,0,0,0.65);
  pointer-events: none;

  transition:
    top 120ms ease,
    font-size 120ms ease,
    color 120ms ease;
}

/* Lift label */
.pinput:focus + .plabel,
.pinput:not(:placeholder-shown) + .plabel{
  top: -9px;
  font-size: 12px;
  color: rgba(0,0,0,0.75);
}

/* ------------------------------------------------------------
   Primary CTA button (tight edges, defined)
   ------------------------------------------------------------ */

.auth-cta{
  width: 100%;
  height: var(--auth-height);
  margin-top: 14px;

  border-radius: var(--auth-radius);
  border: 1px solid #050505;

  background: linear-gradient(
    to bottom,
    var(--btn-black-top) 0%,
    var(--btn-black-mid) 45%,
    var(--btn-black-bot) 100%
  );

  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 1px 0 rgba(0,0,0,0.35);

  transition: filter 120ms ease, transform 80ms ease;
}

.auth-cta:hover{
  filter: brightness(1.05);
}

.auth-cta:active{
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ------------------------------------------------------------
   Secondary links
   ------------------------------------------------------------ */

.auth-links{
  margin-top: 18px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.auth-links a{
  color: rgba(0,0,0,0.72);
  text-decoration: none;
}

.auth-links a:hover{
  color: rgba(0,0,0,0.95);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Status messages
   ------------------------------------------------------------ */

.status{
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 14px;
}

.status.ok{
  background: #eef7f1;
  color: #1f6b3a;
}

.status.err{
  background: #fdeeee;
  color: #8a1f1f;
}

/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 520px){
  .auth-card{ padding: 22px; }
  .auth-title{ font-size: 26px; }
}
/* Lock Porsche auth inputs to pure white (incl. Chrome autofill) */
/* Porsche Identity-like input typography */
.auth-shell .pinput{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 17.6px;  /* matches Porsche inspector (1.1 * 16) */
  color: #000;
  background: #fff;
}

/* Optional: make text render a bit more “premium” */
.auth-shell{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.auth-shell .pinput:-webkit-autofill,
.auth-shell .pinput:-webkit-autofill:hover,
.auth-shell .pinput:-webkit-autofill:focus,
.auth-shell .pinput:-webkit-autofill:active{
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #111 !important;
  caret-color: #111 !important;
  background-color: #fff !important;
}
/* Make room for the eye button inside the password input */
.pfield .pinput{
  padding-right: 52px; /* space so text doesn't run under the eye */
}

.pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  border: 0;              /* ← no border */
  background: transparent;/* ← no box */
  padding: 0;
  margin: 0;

  display: grid;
  place-items: center;

  cursor: pointer;
  color: #111;
}

.pw-toggle:hover{
  background: rgba(0,0,0,0.06);  /* subtle hover like Porsche */
  border-radius: 6px;
}

/* ==============================
   Porsche Header (Global)
   ============================== */


/* Logo */
.site-logo img{
  height: 34px;
  display: block;
}


.pinput[readonly]{
  background: #f7f7f7;
}


/* Read-only fields: clearly locked */
.pfield.acct-ro{
  position: relative;
}

/* Locked but selectable fields (OEM behavior) */
.pfield.acct-ro .pinput{
  background: rgba(0,0,0,0.04);
  cursor: default;              /* normal arrow cursor */
  caret-color: transparent;     /* no blinking cursor */
  user-select: text;            /* allow copy/select */
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}



.pfield.acct-ro .pinput[readonly]:focus{
  outline: none;
  box-shadow: none;
}

/* Lock icon */
.pfield.acct-ro .pinput[readonly]{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}


/* Account page: push content down from header */
.auth-shell.account-shell{
  padding-top: 64px;   /* adjust 24–48px to taste */
}

/* ==============================
   Account page (OEM portal layout)
   ============================== */

.account-page{
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 16px 28px;
}

.account-card{
  max-width: none;
  width: 100%;
  padding: 22px;
}

.account-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.account-title{
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.02em;
}

.account-plate{
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  padding: 14px;
  margin-bottom: 18px;
}

.account-plate-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.account-section{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.account-section-title{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-actions-row{
  margin-top: 12px;
}



/* Responsive */
@media (max-width: 980px){
  .account-plate-grid,
  .account-actions,
  .account-form-grid{
    grid-template-columns: 1fr;
  }
  .account-header{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* FINAL OVERRIDES — account readonly fields must be selectable with normal cursor */
.account-page .pfield.acct-ro .pinput[readonly]{
  cursor: default !important;  /* kills red stop cursor from older rules */
  user-select: text;
  caret-color: transparent;
}

/* ==============================
   Porsche Header (theme only — no layout)
   Keep layout in public.css
   ============================== */

.site-header{
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Force white links in header regardless of public/base link color */
.site-header a,
.site-header a:visited{
  color: #fff !important;
}

.site-header a:hover{
  opacity: 1;
}

/* Logo size (keep theme identity here; safe) */
.site-logo img{
  height: 34px;
  display: block;
}

.site-header .nav-divider{background: rgba(255,255,255,0.22);}
