* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  color: #1f2937;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #123c69, #6c5ce7);
}

.login-card {
  width: 360px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  text-align: center;
}

.logo {
  width: 70px;
  height: 70px;
  background: #123c69;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 22px;
  margin: 0 auto 15px;
}

h1, h2 {
  margin-top: 0;
}

input, select, textarea {
  width: 100%;
  padding: 13px;
  margin: 8px 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
}

label {
  font-weight: bold;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #123c69;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #0b2c4f;
}

header {
  background: white;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header button {
  width: auto;
  padding: 10px 18px;
}

.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.sign-link-box {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  padding: 15px;
  border-radius: 10px;
  word-break: break-word;
}

@media (max-width: 800px) {
  .container {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

.checkbox-group {
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
}

.checkbox-group label {
  display: block;
  font-weight: normal;
  margin: 8px 0;
}

.checkbox-group input {
  width: auto;
  margin-right: 8px;
}

.pdf-viewer {

border: 1px solid #cbd5e1;

border-radius: 12px;

overflow: hidden;

margin-bottom: 20px;

}


button:disabled {

background: #94a3b8;

cursor: not-allowed;

}

.directory-main {

display: block;

}

.directory-card {

max-width: 100%;

}

.directory-toolbar {

display: flex;

gap: 12px;

align-items: center;

margin-bottom: 16px;

}

.directory-toolbar input {

flex: 1;

margin: 0;

}

.directory-toolbar button {

flex-shrink: 0;

}

.directory-table {

width: 100%;

border-collapse: collapse;

}

.directory-table th,
.directory-table td {

text-align: left;

padding: 10px 12px;

border-bottom: 1px solid #e2e8f0;

font-size: 14px;

vertical-align: top;

}

.directory-table th {

background: #f8fafc;

font-weight: bold;

}

.directory-links a {

display: inline-block;

margin-bottom: 4px;

}

.status-badge {

display: inline-block;

padding: 4px 10px;

border-radius: 999px;

font-size: 12px;

font-weight: bold;

white-space: nowrap;

}

.status-pending {

background: #fef3c7;

color: #92400e;

}

.status-complete {

background: #dcfce7;

color: #166534;

}

canvas {

border: 1px solid #cbd5e1;

border-radius: 8px;

display: block;

width: 100%;

max-width: 400px;

height: auto;

touch-action: none;

margin-bottom: 10px;

}

.copy-link-btn {

width: auto;

padding: 4px 10px;

font-size: 12px;

margin-left: 8px;

background: #64748b;

}

.archive-btn {

width: auto;

padding: 4px 10px;

font-size: 12px;

background: #b45309;

}

.restore-btn {

width: auto;

padding: 4px 10px;

font-size: 12px;

background: #166534;

}

.archived-row {

opacity: 0.6;

}