* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.container { width: 100%; max-width: 480px; padding: 20px; }

.card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  text-align: center;
}

.logo i { font-size: 60px; color: #667eea; margin-bottom: 20px; }
.logo h1 { font-size: 32px; color: #333; margin-bottom: 10px; }
.logo p { color: #666; margin-bottom: 30px; }

input, select, button {
  width: 100%;
  padding: 16px;
  margin: 12px 0;
  border: none;
  border-radius: 12px;
  font-size: 16px;
}

input, select {
  background: #f5f5f5;
  outline: none;
}

button {
  background: #667eea;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

button:hover { background: #5a6fd8; transform: translateY(-2px); }

.link { color: #667eea; cursor: pointer; font-weight: 500; }

header {
  background: white;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-card {
  background: white;
  padding: 40px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.input-row {
  display: flex;
  gap: 15px;
}

.input-row select, .input-row input { flex: 1; }

.btn-gerar {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  font-size: 20px;
  padding: 18px;
  margin: 30px 0;
}

.progress-bar {
  height: 12px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.5s;
}

.btn-download {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
}

#status { margin-top: 20px; color: #666; font-size: 14px; }

.input-password {
  position: relative;
  width: 100%;
  margin: 12px 0;
}

.input-password input {
  width: 100%;
  padding-right: 50px !important;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #667eea;
  font-size: 18px;
  user-select: none;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #5a6fd8;
}