* {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --card: #10131b;
  --card-2: #0b0e14;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b7bcc7;
  --muted-2: #8b91a0;
  --red: #ff1020;
  --red-dark: #d60013;
  --input-bg: #090c12;
  --danger-bg: rgba(255, 40, 40, 0.12);
  --danger-line: rgba(255, 40, 40, 0.24);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 0, 20, 0.10), transparent 26%),
    linear-gradient(180deg, #040404 0%, #06080d 48%, #040404 100%);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 28px;
}

.top-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.top-logo img {
  width: 120px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.card,
.viewer-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px 18px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(255, 0, 20, 0.08);
}

.brand-text {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.autoservice-card h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0 auto;
  max-width: 290px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mini-info {
  margin: 16px auto 18px;
  max-width: 300px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.9;
}

label {
  display: block;
  margin: 15px 0 8px;
  color: #f4f6fb;
  font-size: 15px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a6adba;
  font-size: 18px;
  pointer-events: none;
}

input,
select,
button {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
}

input,
select {
  background: var(--input-bg);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input-wrap input {
  padding-right: 42px;
}

input::placeholder {
  color: #778091;
}

input:focus,
select:focus {
  border-color: rgba(255, 16, 32, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 16, 32, 0.10);
}

button {
  margin-top: 20px;
  border: none;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 16, 32, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(255, 16, 32, 0.28);
}

button:active {
  transform: translateY(0);
}

.hidden {
  display: none;
}

.resultado {
  margin-top: 18px;
}

.alert.error {
  background: var(--danger-bg);
  color: #ff8b8b;
  border: 1px solid var(--danger-line);
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
}

.mail-list {
  display: grid;
  gap: 12px;
}

.mail-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 14px;
  transition: transform .14s ease, border-color .14s ease;
}

.mail-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 16, 32, 0.22);
}

.mail-subject {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.mail-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.mail-time {
  color: var(--muted-2);
  font-size: 12px;
}

.viewer-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 28px;
}

.viewer-card {
  max-width: 900px;
}

.viewer-top {
  margin-bottom: 10px;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  color: var(--red);
}

.viewer-card h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.mail-meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 20px 0;
}

.mail-frame {
  width: 100%;
  min-height: 900px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #fff;
}

.mail-text {
  white-space: pre-wrap;
  font-family: Arial, sans-serif;
  background: #0d1118;
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .card {
    max-width: 420px;
    padding: 22px 20px 20px;
  }

  .top-logo img {
    width: 150px;
  }

  .autoservice-card h1 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 15px;
    max-width: 340px;
  }

  .mini-info {
    font-size: 13px;
  }
  
 .mail-frame {
  width: 100%;
  min-height: 900px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #fff;
}
 
}