* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(160deg, #eef6ff, #f9fbff);
  display: grid;
  place-items: center;
  padding: 24px;
}

.shell {
  width: min(100%, 620px);
  display: grid;
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(41, 64, 90, 0.12);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 20px;
  color: #4e5d6e;
}

.card-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  color: #0f172a;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.field input {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.field select {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: white;
}

.ghost {
  width: auto;
  background: #e8eef7;
  color: #1e293b;
}

input[type="file"] {
  width: 100%;
  margin-bottom: 14px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: #0b66ff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

progress {
  width: 100%;
  margin-top: 14px;
}

.status {
  min-height: 24px;
  margin-top: 14px;
}

.selection {
  min-height: 20px;
  margin: 14px 0 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.summary {
  min-height: 20px;
  margin: 8px 0 0;
  color: #4e5d6e;
  font-size: 0.95rem;
}

#objectLink {
  display: inline-block;
  margin-top: 8px;
  word-break: break-all;
}

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

  .card-header {
    flex-direction: column;
  }
}
