:root {
  --rc-turquoise: #45C1C6;
  --rc-petroleum: #09344c;
  --rc-navy: #025A72;
  --rc-grey: #485054;
  --rc-light-turquoise: rgba(69, 193, 198, 0.1);
  --rc-line: #e5e7eb;
  --error: #d64545;
  --radius-card: 2rem;
}

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

body {
  min-height: 100vh;
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: var(--rc-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
}

.shell { width: 100%; max-width: 680px; position: relative; z-index: 1; }
.hidden { display: none !important; }

/* Círculos decorativos da marca */
.deco-circle {
  position: fixed;
  border-radius: 50%;
  border: 2px solid rgba(69, 193, 198, 0.15);
  pointer-events: none;
  z-index: 0;
}
.deco-circle.c1 { width: 520px; height: 520px; top: -160px; right: -160px; }
.deco-circle.c2 { width: 360px; height: 360px; bottom: -140px; left: -120px; }

.card {
  position: relative;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 44px 40px;
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo { height: 40px; width: auto; display: block; margin: 0 auto 22px; }

.title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--rc-petroleum);
  line-height: 1.2;
}
.title strong { font-weight: 700; color: var(--rc-turquoise); }
.subtitle { margin: 8px 0 28px; color: var(--rc-grey); font-weight: 300; }

.logout-link {
  position: absolute;
  top: 26px;
  right: 30px;
  background: none;
  border: none;
  color: var(--rc-navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
}

.form { display: flex; flex-direction: column; gap: 14px; }

input[type="password"] {
  padding: 14px 16px;
  border-radius: 0.75rem;
  border: 1px solid var(--rc-line);
  background: #fff;
  color: var(--rc-petroleum);
  font-family: inherit;
  font-size: 1rem;
}
input[type="password"]:focus {
  outline: 3px solid rgba(69, 193, 198, 0.2);
  border-color: var(--rc-turquoise);
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 9999px;
  background: var(--rc-turquoise);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(69, 193, 198, 0.3);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(69, 193, 198, 0.4); }
.btn-ghost {
  background: #fff;
  color: var(--rc-petroleum);
  border: 1px solid var(--rc-line);
  box-shadow: none;
}
.btn-ghost:hover { box-shadow: none; border-color: var(--rc-turquoise); }

.link {
  background: none;
  border: none;
  color: var(--rc-navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
}

.dropzone {
  border: 2px dashed rgba(69, 193, 198, 0.4);
  border-radius: 1.25rem;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--rc-light-turquoise);
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.drag { border-color: var(--rc-turquoise); background: rgba(69, 193, 198, 0.18); }
.dz-icon { font-size: 2.5rem; margin-bottom: 8px; }
.dz-text { color: var(--rc-petroleum); margin-bottom: 4px; }
.dz-link { color: var(--rc-turquoise); font-weight: 600; }
.dz-hint { margin-top: 8px; color: var(--rc-grey); font-size: 0.85rem; font-weight: 300; }

.status { margin-top: 28px; }
.status-text { margin-bottom: 10px; color: var(--rc-navy); }
.bar { height: 8px; background: var(--rc-light-turquoise); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--rc-turquoise); transition: width 0.2s; }
.bar-fill.indeterminate { width: 40%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

.error { color: var(--error); margin-top: 16px; font-size: 0.9rem; }

.result { margin-top: 28px; text-align: left; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-name { font-weight: 600; color: var(--rc-petroleum); }
.result-actions { display: flex; gap: 8px; align-items: center; }
.preview {
  margin-top: 16px;
  background: #f7fbfc;
  border: 1px solid var(--rc-line);
  border-radius: 1rem;
  padding: 20px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--rc-petroleum);
}
