* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background:
    #f4f7fb;

  color:
    #172033;
}


/* =========================================
   PUSLAPIS
   ========================================= */

.account-settings-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 24px;
}


/* =========================================
   PAGRINDINĖ KORTA
   ========================================= */

.account-settings-card {
  width: 100%;
  max-width: 1040px;

  display: grid;

  grid-template-columns:
  260px
  minmax(0, 1fr);

  background:
    #ffffff;

  border:
    1px solid #e6eaf0;

  border-radius:
    22px;

  overflow: hidden;

  box-shadow:
    0 20px 55px
    rgba(20, 35, 70, 0.08);
}


/* =========================================
   KAIRĖ PUSĖ
   ========================================= */

.account-settings-sidebar {
  min-height: 720px;

  padding:
    52px
    24px;

  background:
    #f8fafc;

  border-right:
    1px solid #e7ebf0;

  text-align: center;
}


.account-avatar {
  width: 92px;
  height: 92px;

  margin:
    0 auto
    22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    #eef1ff;

  color:
    #5c5ce2;

  font-size: 34px;
  font-weight: 800;
}


.account-settings-sidebar h2 {
  margin:
    0
    0
    8px;

  font-size: 19px;
  line-height: 1.25;
}


.account-role {
  margin: 0;

  color:
    #697386;

  font-size: 15px;
}


.account-sidebar-divider {
  height: 1px;

  margin:
    34px 0;

  background:
    #e4e8ee;
}


.account-sidebar-info {
  margin-bottom: 26px;

  text-align: left;
}


.account-sidebar-info span {
  display: block;

  margin-bottom: 6px;

  color:
    #8a94a6;

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing:
    0.05em;
}


.account-sidebar-info strong {
  font-size: 15px;
  font-weight: 700;
}
/* =========================================
   GOOGLE PRISIJUNGIMO KORTELĖ
   ========================================= */

.account-login-card {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 8px;
  margin-bottom: 22px;

  padding: 14px;

  background: #ffffff;

  border: 1px solid #e2e7ef;
  border-radius: 14px;

  text-align: left;
}


.account-login-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border: 1px solid #e4e8ef;
  border-radius: 50%;

  color: #4285f4;

  font-size: 20px;
  font-weight: 800;
}


.account-login-text {
  flex: 1;

  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}


.account-login-text strong {
  color: #172033;

  font-size: 13px;
  font-weight: 800;

  line-height: 1.3;
}


.account-login-text strong span {
  display: inline;

  margin: 0;

  color: inherit;

  font-size: inherit;
  font-weight: inherit;

  text-transform: none;

  letter-spacing: normal;
}


.account-login-text > span {
  color: #7a8495;

  font-size: 12px;

  line-height: 1.3;
}


.account-login-check {
  flex-shrink: 0;

  color: #22c55e;

  font-size: 18px;
  font-weight: 800;
}
/* =========================================
   DUOMENŲ SAUGUMO KORTELĖ
   ========================================= */

.account-security-card {
  width: 100%;

  margin-top: 18px;

  padding: 16px;

  background: #f4f7ff;

  border: 1px solid #cfdcff;
  border-radius: 14px;

  text-align: left;
}


.account-security-header {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 10px;
}


.account-security-icon {
  width: 32px;
  height: 32px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border-radius: 10px;

  font-size: 17px;
}


.account-security-header strong {
  color: #2856c7;

  font-size: 13px;
  font-weight: 800;

  line-height: 1.3;
}


.account-security-card p {
  margin: 0;

  color: #657089;

  font-size: 12px;

  line-height: 1.6;
}


/* =========================================
   DEŠINĖ PUSĖ
   ========================================= */

.account-settings-content {
  padding:
    48px
    54px
    44px;
}


.account-settings-header {
  display: flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap: 30px;

  padding-bottom: 32px;

  border-bottom:
    1px solid #edf0f4;
}


.account-settings-label {
  display: block;

  margin-bottom: 9px;

  color:
    #6565df;

  font-size: 12px;
  font-weight: 800;

  letter-spacing:
    0.08em;
}


.account-settings-header h1 {
  margin:
    0
    0
    10px;

  font-size: 30px;
  line-height: 1.15;
}


.account-settings-header p {
  margin: 0;

  color:
    #727c8e;

  font-size: 15px;
  line-height: 1.6;
}


.account-settings-back {
  flex-shrink: 0;

  color:
    #646ee5;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}


.account-settings-back:hover {
  text-decoration: underline;
}
/* =========================================
   TURINIO SEKCIJOS
   ========================================= */

.account-settings-section {
  padding: 30px 0;
  border-bottom: 1px solid #edf0f4;
}

.account-settings-section h3 {
  margin: 0 0 22px;

  font-size: 18px;
  font-weight: 800;

  color: #172033;
}


/* =========================================
   ASMENINĖS INFORMACIJOS GRID
   ========================================= */

.account-settings-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px 24px;
}


/* =========================================
   LAUKAI
   ========================================= */

.account-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.account-field label {
  font-size: 13px;
  font-weight: 700;

  color: #313a4d;
}


.account-field input {
  width: 100%;
  height: 48px;

  padding: 0 14px;

  border: 1px solid #dce2ea;
  border-radius: 10px;

  background: #ffffff;

  color: #172033;

  font-size: 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.account-field input:focus {
  border-color: #5c67e8;

  box-shadow:
    0 0 0 3px
    rgba(92, 103, 232, 0.12);
}


.account-field input:disabled {
  background: #f7f8fa;

  color: #7a8495;

  cursor: not-allowed;
}
/* =========================================
   GREITOS NUORODOS
   ========================================= */

.account-quick-links {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.account-quick-links--candidate {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}


.account-quick-link {
  min-height: 130px;

  display: flex;
  flex-direction: column;
  position: relative;

  align-items: flex-start;

  gap: 14px;

  padding: 18px;

  border: 1px solid #e0e5ed;
  border-radius: 14px;

  background: #ffffff;

  color: #172033;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.account-quick-link:hover {
  transform: translateY(-2px);

  border-color: #cfd6e3;

  box-shadow:
    0 8px 22px
    rgba(20, 35, 70, 0.08);
}


.account-quick-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50px;

  background: #f0f3ff;

  font-size: 20px;
}
.account-quick-link:nth-child(1) .account-quick-icon {
  background: #dfeaff;
}

.account-quick-link:nth-child(2) .account-quick-icon {
  background: #eadfff;
}

.account-quick-link:nth-child(3) .account-quick-icon {
  background: #ddf5e7;
}


.account-quick-link > div:nth-child(2) {
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 7px;
}


.account-quick-link strong {
  font-size: 14px;
  font-weight: 800;

  color: #172033;
}


.account-quick-link span {
  font-size: 12px;
  line-height: 1.45;

  color: #7a8495;
}


.account-quick-arrow {
  position: absolute;

  top: 18px;
  right: 18px;

  color: #667085 !important;

  font-size: 18px !important;
  font-weight: 700;
}
/* =========================================
   APAČIOS VEIKSMAI
   ========================================= */

.account-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 0;

  padding-top: 24px;
}


.account-settings-actions button {
  height: 46px;

  padding: 0 22px;

  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}


/* ATSIJUNGTI */

.account-logout-button {
  border: 1px solid transparent;

  background: transparent;

  color: #ef4444;

  padding-left: 0 !important;
}


.account-logout-button:hover {
  background: #fff1f1;
}


/* IŠSAUGOTI */

.account-save-button {
  margin-left: auto;

  border: 1px solid #2f66e8;

  background: #2f66e8;

  color: #ffffff;

  box-shadow:
    0 6px 16px
    rgba(47, 102, 232, 0.18);
}


.account-save-button:hover {
  background: #2458d4;

  border-color: #2458d4;

  transform: translateY(-1px);
}


/* PASKYROS IŠTRYNIMAS */

.account-deletion-section[hidden] {
  display: none;
}


.account-deletion-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border: 1px solid #fecaca;
  background: #fff7f7;
}


.account-deletion-section p {
  margin: 8px 0 0;

  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.55;
}


.account-delete-button {
  flex-shrink: 0;

  min-height: 44px;
  padding: 0 18px;

  border: 1px solid #dc2626;
  border-radius: 10px;

  background: #dc2626;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}


.account-delete-button:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}


.account-delete-button:disabled {
  opacity: 0.65;
  cursor: wait;
}


.account-delete-modal[hidden],
.account-delete-password[hidden] {
  display: none;
}


.account-delete-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.58);
}


.account-delete-modal-card {
  width: min(100%, 520px);
  padding: 28px;

  border: 1px solid #fecaca;
  border-radius: 16px;

  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}


.account-delete-modal-card h2 {
  margin: 0 0 16px;

  color: #991b1b;
  font-size: 24px;
}


.account-delete-modal-card p {
  margin: 0 0 12px;

  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}


.account-delete-modal-card .account-delete-warning {
  color: #991b1b;
  font-weight: 700;
}


.account-delete-password {
  margin-top: 18px;
}


.account-delete-password label {
  display: block;
  margin-bottom: 8px;

  color: #344054;
  font-size: 14px;
  font-weight: 700;
}


.account-delete-password input {
  width: 100%;
  height: 44px;
  padding: 0 12px;

  border: 1px solid #d0d5dd;
  border-radius: 10px;

  font: inherit;
}


.account-delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;

  margin-top: 24px;
}


.account-delete-modal-actions button {
  min-height: 44px;
  padding: 0 18px;

  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}


.account-delete-cancel-button {
  border: 1px solid #d0d5dd;

  background: #ffffff;
  color: #344054;
}


.account-delete-confirm-button {
  border: 1px solid #dc2626;

  background: #dc2626;
  color: #ffffff;
}


.account-delete-confirm-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

  .account-settings-page {
    padding: 24px 16px;
    align-items: flex-start;
  }


  .account-settings-card {
    grid-template-columns: 1fr;
  }


  .account-deletion-section {
    align-items: flex-start;
    flex-direction: column;
  }


  .account-delete-modal-actions {
    flex-direction: column-reverse;
  }


  .account-delete-modal-actions button {
    width: 100%;
  }


  .account-settings-sidebar {
    min-height: auto;

    padding:
      34px
      24px;

    border-right: none;

    border-bottom:
      1px solid #e7ebf0;
  }


  .account-sidebar-divider {
    margin: 26px 0;
  }


  .account-settings-content {
    padding:
      34px
      24px;
  }


  .account-settings-grid {
    grid-template-columns: 1fr;
  }


  .account-quick-links {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .account-settings-page {
    padding: 0;
  }


  .account-settings-card {
    border: none;

    border-radius: 0;

    box-shadow: none;
  }


  .account-settings-header {
    flex-direction: column-reverse;

    gap: 18px;
  }


  .account-settings-header h1 {
    font-size: 26px;
  }


  .account-settings-back {
    align-self: flex-start;
  }


  .account-settings-actions {
    flex-direction: column-reverse;

    align-items: stretch;
  }


  .account-settings-actions button {
    width: 100%;
  }


  .account-save-button {
    margin-left: 0;
  }

}
