/* Vendor Backup Upload Portal — styles */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f9;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 520px;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1a1a2e;
}

.subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* ── Auth Section ──────────────────────────────────────────────── */
#auth-section {
  text-align: center;
}

#auth-section p {
  margin-bottom: 1.25rem;
  color: #374151;
}

/* ── Upload Section ────────────────────────────────────────────── */
#upload-section { display: none; }

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4ff;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #374151;
}

.user-bar strong {
  color: #1a1a2e;
}

.instructions {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: #78350f;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.instructions ul {
  margin-top: 0.4rem;
  padding-left: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #374151;
}

input[type="text"],
input[type="month"],
input[type="file"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="month"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input[type="file"] {
  cursor: pointer;
  padding: 0.45rem 0.6rem;
}

.file-info {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

/* ── Progress ──────────────────────────────────────────────────── */
#progress-container {
  display: none;
  margin: 1rem 0;
}

.progress-bar-wrap {
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.progress-bar-fill {
  background: #6366f1;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
  border-radius: 999px;
}

.progress-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin: 0.75rem 0;
  display: none;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #6366f1;
  color: #fff;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
  background: #4f46e5;
}

.btn-secondary {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
}

.btn-secondary:hover {
  background: #f0f0ff;
}
