:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #0a0a0a;
  background: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.login-screen {
  width: 100%;
  max-width: 420px;
  min-height: 538px;
  min-height: max(538px, 100svh);
  margin: 0 auto;
  padding: 0 10px 9px;
  display: flex;
  flex-direction: column;
}

.screen-header {
  position: relative;
  height: 182px;
  flex-shrink: 0;
  text-align: center;
}

.language {
  display: block;
  padding-top: 11px;
  color: #6b6b6b;
  font-size: 11px;
  line-height: 13px;
}

.instagram-logo {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
}

.login-form { display: flex; flex-direction: column; }

.login-form input:not([type="hidden"]),
.recover-input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  color: #262626;
  font-size: 12px;
  line-height: normal;
  outline: none;
}

.login-form input + .visually-hidden + input { margin-top: 9px; }
.login-form input::placeholder,
.recover-input::placeholder { color: #6b6b6b; opacity: 1; }
.login-form input:focus,
.recover-input:focus { border-color: #a0a0a0; }

.login-button,
.recover-submit {
  height: 36px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #0862e6;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

.login-form > .login-button,
.recover-submit { margin-top: 9px; }
.login-button:hover,
.recover-submit:hover { background: #0759d2; }

.form-status {
  margin: 14px 4px 0;
  color: #b42318;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.form-status-success { color: #18733b; }

.forgot-password {
  align-self: center;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0a0a0a;
  font-size: 12px;
  line-height: 16px;
}

.screen-footer { margin-top: auto; padding-top: 60px; }

.create-account {
  width: 100%;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #3984ff;
  border-radius: 22px;
  background: #fff;
  color: #0064e9;
  font-size: 12px;
}

.create-account:hover { background: #f5f9ff; }

.meta-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 16px;
  margin-top: 13px;
  color: #263238;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -0.5px;
}

button:focus-visible { outline: 2px solid #0862e6; outline-offset: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.demo-dialog {
  width: min(340px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
}
.demo-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.demo-dialog h1 { margin: 0 0 12px; font-size: 18px; }
.demo-dialog p { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #666; }

[hidden] { display: none !important; }

.recover-screen {
  width: 100%;
  max-width: 420px;
  min-height: max(538px, 100svh);
  margin: 0 auto;
  padding: 0 10px 9px;
  font-family: inherit;
  color: #0a0a0a;
}

.recover-back {
  text-decoration: none;
  display: block;
  width: 24px;
  height: 24px;
  margin: 7px 0 0 -7px;
  padding: 0;
  border: 0;
  background: transparent;
}

.recover-back svg { display: block; }

.recover-title {
  margin: 19px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  color: inherit;
}

.recover-description {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-indent: 1px;
  color: inherit;
}

.recover-help {
  position: relative;
  top: 0;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0064e9;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
}

.recover-form { margin-top: 21px; }

.recover-form { display: flex; flex-direction: column; }

.recover-alternative {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
  text-indent: 1px;
}

.dashboard {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e3e3;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-title .instagram-logo {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.dashboard-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.dashboard-title p {
  margin: 4px 0 0;
  color: #6b6b6b;
  font-size: 12px;
}

.dashboard-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #f5f9ff;
  color: #0064e9;
}

.dashboard-count {
  font-size: 24px;
  font-weight: 700;
}

.dashboard-count-label {
  font-size: 12px;
}

.dashboard-error { margin: 24px 0 0; }

.dashboard-empty {
  margin: 48px 0;
  color: #6b6b6b;
  text-align: center;
  font-size: 14px;
}

.dashboard-table-wrapper {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.dashboard-table th {
  background: #fafafa;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-table tbody tr + tr { border-top: 1px solid #efefef; }
.dashboard-table tbody tr:hover { background: #fafafa; }

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.dashboard-table td[data-label="Contraseña"] {
  max-width: 300px;
  white-space: normal;
}

.dashboard-password {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #444;
  word-break: break-all;
}

.dashboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #0064e9;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-footer {
  margin-top: 24px;
  text-align: right;
}

.dashboard-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 20px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .dashboard { padding: 24px 14px; }
  .dashboard-title h1 { font-size: 18px; }

  .dashboard-table thead { display: none; }
  .dashboard-table,
  .dashboard-table tbody,
  .dashboard-table tr,
  .dashboard-table td { display: block; width: 100%; }

  .dashboard-table tr {
    padding: 12px 16px;
  }

  .dashboard-table tr + tr { border-top: 1px solid #efefef; }

  .dashboard-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    white-space: normal;
  }

  .dashboard-table td::before {
    content: attr(data-label);
    color: #6b6b6b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dashboard-table tbody tr:hover { background: transparent; }
  .dashboard-footer { text-align: center; }
}
