/* Prabandh360 v101 — focused login redesign. Login page only. */

body.p360-login-body {
  --p360-accent: #177a50;
  --p360-accent-strong: #0f6843;
  --p360-accent-soft: rgba(23,122,80,.10);
  --p360-text: var(--auth-label);
  --p360-muted: var(--auth-label-3);
  --p360-line: var(--auth-border);
  --p360-panel: var(--auth-surface-solid);
  display: block !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: var(--auth-bg) !important;
}

html[data-theme="dark"] body.p360-login-body {
  --p360-accent: #54c78f;
  --p360-accent-strong: #67d8a1;
  --p360-accent-soft: rgba(84,199,143,.12);
}

body.p360-login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 85% -10%, rgba(34,139,94,.10), transparent 68%),
    radial-gradient(34rem 24rem at -5% 100%, rgba(133,194,70,.08), transparent 70%);
}

.p360-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(390px, .68fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.p360-login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 2.8vw, 40px) clamp(28px, 3.6vw, 52px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(4,52,33,.98), rgba(10,90,57,.96) 48%, rgba(37,111,69,.94)),
    #075436;
}

.p360-login-hero::before,
.p360-login-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.p360-login-hero::before {
  right: -15%;
  bottom: -24%;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 42% 58% 65% 35% / 48% 36% 64% 52%;
  background:
    linear-gradient(135deg, rgba(174,213,77,.16), rgba(35,165,99,.02)),
    radial-gradient(circle at 42% 34%, rgba(255,255,255,.13), transparent 54%);
  transform: rotate(-12deg);
}

.p360-login-hero::after {
  top: 18%;
  right: 13%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  transform: rotate(22deg);
}

.p360-hero-topbar,
.p360-hero-content,
.p360-hero-footer {
  position: relative;
  z-index: 2;
}

.p360-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.p360-product-mark,
.p360-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.p360-product-mark > span:last-child > span,
.p360-mobile-brand > span:last-child > span {
  color: #a8d64f;
}

.p360-product-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  color: #d9f39d;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.10);
}

.p360-product-icon i { font-size: 18px; }

.p360-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 600;
}

.p360-secure-pill i { color: #b9e46a; font-size: 15px; }

.p360-hero-content {
  width: min(100%, 720px);
  margin: auto 0;
  padding: 28px 0 18px;
}

.p360-kicker {
  margin: 0 0 12px;
  color: #b9e46a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.p360-hero-content h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.7vw, 62px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.058em;
}

.p360-hero-content h1 span { color: #b9e46a; }

.p360-hero-copy {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.55;
}

.p360-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.p360-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}

.p360-feature-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: #ccec8e;
  background: rgba(183,224,102,.10);
}

.p360-feature-icon i { font-size: 16px; }
.p360-feature-card strong {
  display: block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.p360-feature-card div > span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.56);
  font-size: 9.6px;
  line-height: 1.38;
}

.p360-hero-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.40);
  font-size: 9.5px;
}

.p360-hero-footer a { display: inline-flex; align-items: center; }
.p360-hero-footer img {
  display: block;
  width: auto;
  max-width: 116px;
  max-height: 30px;
  object-fit: contain;
}
.p360-hero-footer .ios-auth-logo-light { display: none !important; }
.p360-hero-footer .ios-auth-logo-dark { display: block !important; }

.p360-login-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 2.2vw, 26px);
  background: color-mix(in srgb, var(--auth-bg) 88%, var(--auth-surface-solid));
}

.p360-login-card {
  width: min(100%, 400px);
  margin: auto;
}

.p360-mobile-brand { display: none; color: var(--p360-text); }
.p360-mobile-brand .p360-product-icon {
  border-color: color-mix(in srgb, var(--p360-accent) 22%, var(--p360-line));
  color: var(--p360-accent);
  background: var(--p360-accent-soft);
}

.p360-login-heading { margin-bottom: 20px; }
.p360-login-eyebrow {
  margin: 0 0 6px;
  color: var(--p360-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.p360-login-heading h2 {
  margin: 0;
  color: var(--p360-text);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.p360-login-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--p360-muted);
  font-size: 12px;
  line-height: 1.5;
}

.p360-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid var(--p360-line);
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.45;
}
.p360-alert i { flex: 0 0 auto; margin-top: 1px; font-size: 15px; }
.p360-alert-error {
  border-color: color-mix(in srgb, var(--auth-red) 30%, var(--p360-line));
  color: var(--auth-red);
  background: color-mix(in srgb, var(--auth-red) 7%, transparent);
}
.p360-alert-info {
  border-color: color-mix(in srgb, var(--auth-blue) 25%, var(--p360-line));
  color: var(--auth-blue);
  background: color-mix(in srgb, var(--auth-blue) 7%, transparent);
}

.p360-login-form { margin: 0; }
.p360-field { margin-bottom: 12px; }
.p360-field label,
.p360-label-row label {
  display: block;
  margin: 0 0 6px;
  color: var(--auth-label-2);
  font-size: 11.5px;
  font-weight: 650;
}
.p360-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.p360-label-row label { margin: 0; }
.p360-label-row a {
  color: var(--p360-accent) !important;
  font-size: 10.5px;
  font-weight: 600;
}
.p360-label-row a:hover { color: var(--p360-accent-strong) !important; }

.p360-input-wrap { position: relative; }
.p360-input-wrap > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--auth-label-4);
  font-size: 18px;
  pointer-events: none;
}
.p360-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 43px;
  border: 1px solid var(--p360-line);
  border-radius: 12px;
  color: var(--p360-text);
  background: var(--auth-control);
  box-shadow: inset 0 1px rgba(255,255,255,.02);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.p360-input-wrap input.has-action { padding-right: 48px; }
.p360-input-wrap input::placeholder { color: var(--auth-label-4); opacity: 1; }
.p360-input-wrap input:focus {
  border-color: color-mix(in srgb, var(--p360-accent) 72%, var(--p360-line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--p360-accent) 12%, transparent);
}

.p360-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  color: var(--auth-label-3);
  background: transparent;
  cursor: pointer;
}
.p360-password-toggle:hover { color: var(--p360-text); background: var(--auth-fill); }

.p360-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #16784f, #0f6743);
  box-shadow: 0 12px 26px rgba(15,104,67,.18);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.p360-submit i { font-size: 18px; transition: transform .18s ease; }
.p360-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(15,104,67,.24);
}
.p360-submit:hover i { transform: translateX(2px); }
.p360-submit:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p360-accent) 28%, transparent);
  outline-offset: 2px;
}

.p360-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 12px;
  color: var(--auth-label-4);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.p360-divider::before,
.p360-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--p360-line);
}

.p360-alt-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.p360-alt-actions a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--p360-line);
  border-radius: 14px;
  color: var(--auth-label-2) !important;
  background: linear-gradient(180deg, var(--auth-surface-solid), var(--auth-fill));
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.p360-alt-actions a:hover {
  border-color: color-mix(in srgb, var(--p360-accent) 28%, var(--p360-line));
  color: var(--p360-text) !important;
  background: color-mix(in srgb, var(--p360-accent) 7%, var(--auth-surface-solid));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--p360-accent) 12%, transparent);
}
.p360-alt-actions a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p360-accent) 22%, transparent);
  outline-offset: 2px;
}
.p360-alt-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  color: var(--p360-accent);
  background: var(--p360-accent-soft);
}
.p360-alt-icon i { font-size: 18px; }
.p360-alt-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}
.p360-alt-copy strong {
  color: var(--p360-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
}
.p360-alt-copy small {
  margin-top: 2px;
  color: var(--auth-label-4);
  font-size: 9.5px;
  line-height: 1.35;
}
.p360-alt-arrow {
  flex: 0 0 auto;
  color: var(--auth-label-4) !important;
  font-size: 18px !important;
}

.p360-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--p360-line);
  color: var(--auth-label-4);
  font-size: 9.75px;
  line-height: 1.5;
}
.p360-security-note i { flex: 0 0 auto; margin-top: 1px; color: var(--p360-accent); font-size: 14px; }
.p360-login-footer {
  margin-top: 12px;
  color: var(--auth-label-4);
  font-size: 9px;
  text-align: center;
}

body.p360-login-body .p360-theme-toggle {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

@media (max-width: 1050px) {
  .p360-login-shell { grid-template-columns: minmax(0, .98fr) minmax(360px, .72fr); }
  .p360-login-hero { padding-inline: 28px; }
  .p360-feature-grid { grid-template-columns: 1fr; max-width: 470px; }
  .p360-feature-card { padding: 10px 12px; }
  .p360-feature-card div > span { display: none; }
}

@media (max-width: 820px) {
  .p360-login-shell { display: block; min-height: 100dvh; }
  .p360-login-hero { display: none; }
  .p360-login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 58px 18px 18px;
  }
  .p360-login-card { width: min(100%, 430px); }
  .p360-mobile-brand { display: inline-flex; margin-bottom: 24px; }
  .p360-login-heading { margin-bottom: 25px; }
  .p360-login-heading h2 { font-size: 29px; }
}

@media (max-width: 520px) {
  .p360-login-panel { align-items: start; padding: 56px 14px 18px; }
  .p360-mobile-brand { margin-bottom: 20px; font-size: 18px; }
  .p360-product-icon { width: 32px; height: 32px; }
  .p360-login-heading h2 { font-size: 27px; }
  .p360-alt-actions { grid-template-columns: 1fr; }
  .p360-alt-actions a { min-height: 56px; }
  body.p360-login-body .p360-theme-toggle { top: 10px; right: 10px; }
}

@media (max-height: 700px) and (min-width: 821px) {
  .p360-login-panel { padding-top: 12px; padding-bottom: 12px; }
  .p360-hero-content { padding-top: 18px; padding-bottom: 12px; }
  .p360-feature-grid { margin-top: 18px; }
  .p360-login-heading { margin-bottom: 16px; }
  .p360-field { margin-bottom: 10px; }
  .p360-divider { margin-top: 14px; margin-bottom: 10px; }
  .p360-security-note { margin-top: 14px; }
  .p360-login-footer { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .p360-submit,
  .p360-submit i,
  .p360-input-wrap input,
  .p360-alt-actions a { transition: none !important; }
}

@media (max-height: 820px) and (min-width: 821px) {
  .p360-hero-content h1 { font-size: clamp(32px, 4.2vw, 56px); }
  .p360-hero-copy { margin-top: 14px; }
  .p360-feature-card div > span { display: none; }
  .p360-login-heading h2 { font-size: 28px; }
  .p360-input-wrap input { height: 44px; }
  .p360-submit { min-height: 44px; }
  .p360-alt-actions a { min-height: 54px; padding-block: 10px; }
}
