@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap');

:root {
  --bg-dark: #0b001a;
  --text-light: #ffffff;
  --text-muted: #c7c7c7;
  --accent: #ff6a5f;
  --input-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.2);
  --ticket-bg: #1a1033;
  --ticket-gradient: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  --ticket-img: url('./assets/images/pattern-ticket.svg');
  --mainBackground-img: url('./assets/images/background-desktop.png');
  --upload-icon: url('./assets/images/icon-upload.svg');
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inconsolata', monospace;
  background-image: var(--mainBackground-img);
  background-size: cover;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  z-index: 2;
}

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

h1 {
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
}

h1 span {
  color: var(--accent);
}

.subtitle, .confirmation-text {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

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

label {
  font-weight: bold;
  margin-top: 10px;
}

.upload-box {
    display: flex;
    justify-content: center;
  }
  
  .upload-label {
    width: 100%;
    padding: 12px; /* igual aos inputs */
    background: var(--input-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s ease;
  }
  
  .upload-label:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .upload-label img {
    width: 40px;
    height: 40px;
  }
  
  .upload-box input[type="file"] {
    display: none;
  }  

input[type="text"],
input[type="email"] {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  color: var(--text-light);
}

.error-message {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
  }
  

button {
  background: var(--accent);
  color: #000;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.ticket {
    background: var(--ticket-img), var(--ticket-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    color: var(--text-light);
    text-align: left;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); 
  }
  

.ticket-content {
  background: var(--ticket-gradient);
  padding: 20px;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticket-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-logo {
  width: 30px;
}

.ticket-details {
  font-size: 1rem;
  font-weight: bold;
}

.ticket-body {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticket-body img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.ticket .info .name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.ticket .info .github {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.ticket-code {
  position: absolute;
  right: 20px;
  bottom: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hidden {
  display: none;
}

#congrats-name {
    background: linear-gradient(to right, #ed823a, hsl(23, 100%, 95%)); /* roxo para azul */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
  
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    display: inline-block;
  }

  h2 {
    text-align: center;
  }
  

@media (max-width: 600px) {
  body {
    /* background: url('background-desktop.png') no-repeat center center fixed; */
    background-size: cover;
  }
}
