/* ============================================================
   JTEL WEB SUITE - MODULE 030 : LOGIN & PROFILE UPDATE - STYLES
   ------------------------------------------------------------
   Folder : 030-profile-update/030-profile-update.css
   Loaded after 999-common.css, so rules here refine the common
   baseline for this module only. Section notes show the original
   styles.css block each rule came from.

   Build 015 - module-wise split (2026-09-30). No visual change.
   ============================================================ */

/* ---------- from [PROFILE-UPDATE-001] ---------- */

.screen-profile-update {
  flex-direction: column;
  background:
    radial-gradient(circle at 10% 10%, rgba(201,47,56,0.07), transparent 27%),
    radial-gradient(circle at 90% 90%, rgba(67,103,128,0.12), transparent 30%),
    #e9eff3;
}

.profile-update-header {
  flex: 0 0 var(--header-height);
}

.profile-secure-chip {
  min-width: 148px;
  height: 50px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 11px;
}

.profile-secure-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  background: #4cd18a;
  border: 2px solid rgba(255,255,255,0.52);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76,209,138,0.12);
}

.profile-secure-chip small,
.profile-secure-chip strong {
  display: block;
}

.profile-secure-chip small {
  color: rgba(235,242,247,0.62);
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-secure-chip strong {
  margin-top: 2px;
  color: #fff;
  font-size: 0.75rem;
}

.profile-update-workspace {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.profile-update-scroll {
  width: 100%;
  height: 100%;
  padding: 25px;
  overflow: auto;
}

.profile-update-shell {
  width: min(1180px, 100%);
  min-height: 580px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 19px;
}

.profile-identity-card,
.profile-update-main-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,249,250,0.99));
  border: 1px solid #c4d0d8;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 34px rgba(20,40,55,0.12);
}

.profile-identity-belt,
.profile-main-belt {
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background:
    linear-gradient(90deg, #8f1d25, #e34d56 48%, #961e26);
}

.profile-identity-card {
  padding: 38px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-picture-shell {
  position: relative;
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  overflow: visible;
  background:
    linear-gradient(145deg, #ffffff, #dce5ea);
  border: 7px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #b9c8d1,
    0 13px 27px rgba(25,48,64,0.18);
}

.profile-update-picture,
.profile-update-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-update-picture {
  display: block;
  object-fit: cover;
}

.profile-update-initials {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, #5d7689, #263f52);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.profile-picture-status {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2f9b69;
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.profile-identity-copy {
  margin-top: 24px;
  text-align: center;
}

.profile-identity-copy h2 {
  margin: 6px 0 7px;
  color: #263d4d;
  font-size: 1.25rem;
}

.profile-identity-copy p {
  margin: 0;
  color: #73828c;
  font-size: 0.72rem;
  line-height: 1.6;
}

.profile-picture-actions {
  width: 100%;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 8px;
}

.profile-soft-button {
  min-height: 38px;
  color: #344d5d;
  background: linear-gradient(#fff, #e7edf1);
  border: 1px solid #b9c8d1;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.profile-soft-button.danger {
  color: #9d2831;
  background: linear-gradient(#fff, #f6e5e7);
  border-color: #e5bfc3;
}

.profile-soft-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.profile-picture-help {
  width: 100%;
  margin-top: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #778690;
  background: #f0f4f6;
  border: 1px solid #d4dde3;
  border-radius: 11px;
  font-size: 0.63rem;
}

.profile-picture-help strong {
  color: #405766;
  font-size: 0.68rem;
}

.profile-update-main-card {
  padding: 28px 29px 23px;
}

.profile-card-heading {
  padding-bottom: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d8e1e6;
}

.profile-card-heading h2 {
  margin: 6px 0 5px;
  color: #263d4d;
  font-size: 1.36rem;
}

.profile-card-heading p {
  margin: 0;
  color: #75848f;
  font-size: 0.72rem;
}

.profile-lock-badge {
  align-self: flex-start;
  padding: 7px 10px;
  color: #27724f;
  background: #e4f4ec;
  border: 1px solid #b8dfcd;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 850;
}

.profile-fields-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.profile-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field-wide {
  grid-column: span 2;
}

.profile-field > span {
  color: #435867;
  font-size: 0.69rem;
  font-weight: 850;
}

.profile-field > input,
.profile-password-input-shell {
  width: 100%;
  height: 43px;
  color: #203440;
  background: #fff;
  border: 1px solid #bdcbd4;
  border-radius: 9px;
  outline: 0;
  transition: 140ms ease;
}

.profile-field > input {
  padding: 0 12px;
}

.profile-field > input:focus,
.profile-password-input-shell:focus-within {
  border-color: #6c879a;
  box-shadow: 0 0 0 3px rgba(75,111,136,0.13);
}

.profile-password-card {
  margin-top: 22px;
  padding: 18px;
  background:
    linear-gradient(145deg, #f7f9fa, #edf2f5);
  border: 1px solid #ccd7de;
  border-radius: 14px;
}

.profile-password-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.profile-password-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, #db4650, #a82029);
  border-radius: 11px;
  box-shadow: 0 7px 15px rgba(168,32,41,0.20);
}

.profile-password-heading strong,
.profile-password-heading span {
  display: block;
}

.profile-password-heading strong {
  color: #2c4556;
  font-size: 0.85rem;
}

.profile-password-heading span {
  margin-top: 3px;
  color: #788792;
  font-size: 0.66rem;
}

.profile-password-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-password-input-shell {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.profile-password-input-shell input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 8px 0 11px;
  background: transparent;
  border: 0;
  outline: 0;
}

.profile-password-input-shell button {
  height: 31px;
  margin-right: 5px;
  padding: 0 8px;
  color: #526b7b;
  background: #edf2f5;
  border: 1px solid #d0dbe1;
  border-radius: 7px;
  font-size: 0.59rem;
  font-weight: 850;
  cursor: pointer;
}

.profile-password-strength {
  margin-top: 12px;
}

.profile-strength-track {
  height: 5px;
  overflow: hidden;
  background: #d9e1e6;
  border-radius: 999px;
}

.profile-strength-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #8397a5;
  border-radius: inherit;
  transition: width 180ms ease, background 180ms ease;
}

.profile-password-strength[data-level="weak"] .profile-strength-track span {
  background: #bd2e38;
}

.profile-password-strength[data-level="medium"] .profile-strength-track span {
  background: #b87917;
}

.profile-password-strength[data-level="strong"] .profile-strength-track span {
  background: #2c865d;
}

.profile-password-strength small {
  display: block;
  margin-top: 6px;
  color: #74848f;
  font-size: 0.62rem;
}

.profile-update-actions {
  margin-top: 21px;
  padding-top: 17px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #d8e1e6;
}

.profile-action-button {
  min-height: 42px;
  padding: 0 19px;
  border-radius: 9px;
  font-size: 0.73rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-action-button.secondary {
  color: #405563;
  background: linear-gradient(#fff, #e8eef2);
  border: 1px solid #b8c7d0;
}

.profile-action-button.primary {
  min-width: 145px;
  color: #fff;
  background:
    linear-gradient(180deg, #db4650, #ac2029);
  border: 1px solid #971b23;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 8px 17px rgba(172,32,41,0.20);
}

.profile-action-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 940px) {
  .profile-update-shell {
      grid-template-columns: 240px minmax(0, 1fr);
    }

  .profile-password-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
  .profile-update-scroll {
      padding: 13px;
    }

  .profile-update-shell {
      grid-template-columns: 1fr;
    }

  .profile-identity-card {
      padding-bottom: 20px;
    }

  .profile-picture-help {
      margin-top: 18px;
    }

  .profile-fields-grid {
      grid-template-columns: 1fr;
    }

  .profile-field-wide {
      grid-column: span 1;
    }

  .profile-card-heading {
      flex-direction: column;
    }

  .profile-lock-badge {
      align-self: flex-start;
    }

  .profile-update-actions {
      flex-direction: column-reverse;
    }

  .profile-action-button {
      width: 100%;
    }

  .profile-secure-chip {
      display: none;
    }
}
