/* ========================================
   CODING CONF - STYLE GUIDE
   ======================================== */

/* Import da fonte Google */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;700;800&display=swap');

/* Variáveis CSS para cores e reutilização */
:root {
  --neutral-0: hsl(0, 0%, 100%);
  --neutral-300: hsl(252, 6%, 83%);
  --neutral-500: hsl(245, 15%, 58%);
  --neutral-700: hsl(245, 19%, 35%);
  --neutral-900: hsl(248, 70%, 10%);
  --orange-500: hsl(7, 88%, 67%);
  --orange-700: hsl(7, 71%, 60%);
  --gradient-text: linear-gradient(90deg, hsl(7, 86%, 67%), hsl(0, 0%, 100%));
}

/* Reset básico */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Estilos base */
body {
  font-family: 'Inconsolata', monospace;
  background: radial-gradient(ellipse at 60% 40%, var(--neutral-900) 70%, #1a1333 100%);
  color: var(--neutral-0);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* Backgrounds decorativos */
.conf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-lines {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.15;
}

.bg-squiggly-top {
  position: absolute;
  top: 0; 
  right: 0;
  width: 40vw;
  min-width: 200px;
  opacity: 0.7;
}

.bg-squiggly-bottom {
  position: absolute;
  left: -10vw;
  bottom: -5vw;
  width: 60vw;
  min-width: 300px;
  opacity: 0.7;
}

.bg-circle {
  position: absolute;
  right: 10vw;
  bottom: 10vh;
  width: 180px;
  opacity: 0.2;
}

/* Layout principal */
.conf-main {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Card do formulário */
.conf-card {
  background: transparent;
  border: none;
  padding: 1.2rem;
  max-width: 440px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  backdrop-filter: blur(1px);
  margin: 3vh auto;
}

/* Cabeçalho e títulos */
.conf-logo {
  width: 36px;
  margin-bottom: 0;
  margin-right: 0.5rem;
}

.conf-title {
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.3rem 0;
  background: none;
  color: var(--neutral-0);
  line-height: 1.03;
}

.conf-header {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.conf-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  letter-spacing: 1px;
}

.conf-year {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 2.2rem;
  font-weight: 800;
}

.conf-subtitle {
  font-size: 1rem;
  color: var(--neutral-300);
  text-align: center;
  margin-bottom: 0.2rem;
}

/* Formulário */
.conf-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.conf-form > .conf-form-fields, 
.conf-form > label, 
.conf-form > .conf-upload, 
.conf-form > .conf-upload-info, 
.conf-form > .input-group, 
.conf-form > .conf-btn {
  max-width: 380px;
  width: 100%;
}

.conf-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  margin-bottom: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

.conf-input-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--neutral-300);
  margin-bottom: 0.3rem;
  margin-left: 0.1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.conf-input {
  width: 100%;
  padding: 0.7rem;
  background: rgba(30, 20, 50, 0.10);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  color: var(--neutral-0);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  opacity: 0.95;
}

.conf-input:focus {
  border: 2px solid rgba(255,255,255,0.7);
  background: rgba(30, 20, 50, 0.22);
}

.conf-input::placeholder {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  z-index: 10;
  opacity: 0.7;
  background: transparent;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

/* Upload de avatar */
.conf-upload {
  background: rgba(60, 40, 80, 0.45);
  border-radius: 16px;
  border: 2px dashed var(--neutral-300);
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  backdrop-filter: blur(1px);
}

.conf-upload:hover, 
.conf-upload.dragover {
  border-color: var(--orange-500);
  background: rgba(60, 40, 80, 0.65);
}

.upload-icon {
  width: 32px;
  margin-bottom: 0.3rem;
}

.conf-upload span {
  color: var(--neutral-0);
  font-size: 1rem;
}

.conf-upload-info {
  color: var(--neutral-500);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.avatar-btn {
  background: rgba(255,255,255,0.08);
  color: var(--neutral-0);
  border: 1.5px solid var(--orange-500);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.avatar-btn:hover, 
.avatar-btn:focus {
  background: var(--orange-500);
  color: #fff;
}

/* Botão principal */
.conf-btn {
  padding: 0.7rem 0;
  background: linear-gradient(90deg, var(--orange-700), var(--orange-500));
  color: var(--neutral-900);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1.5px solid var(--orange-500);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(2px);
  opacity: 0.98;
}

.conf-btn:hover, 
.conf-btn:focus {
  background: linear-gradient(90deg, var(--orange-500), var(--orange-700));
  color: var(--neutral-900);
}

/* Responsividade */
@media (max-width: 600px) {
  .conf-card {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
    border-radius: 16px;
  }
  
  .conf-title, 
  .conf-year {
    font-size: 1.3rem;
  }
  
  .conf-label, 
  .conf-input, 
  .conf-btn {
    font-size: 1rem;
  }
  
  .conf-header {
    margin-bottom: 0.4rem;
  }
}

@media (max-width: 375px) {
  .conf-card {
    padding: 0.7rem 0.2rem;
    border-radius: 10px;
  }
  
  .conf-title, 
  .conf-year {
    font-size: 1.1rem;
  }
  
  .conf-label, 
  .conf-input, 
  .conf-btn {
    font-size: 0.98rem;
  }
}

/* Utilitários */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
