/* portal.css - estilos completos e independentes do portal de boas-vindas */

:root{
  --bg-overlay: rgba(0,0,0,.55);
  --text: #fff;
  --muted: rgba(255,255,255,.75);
  --btn-orange: #f26b1d;
  --btn-violet: #6c3af2;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

.page{
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  background-image: url('../../img/wispot/fundo_01.webp');
}

@supports (height: 100svh) {
  .page{ min-height: 100svh; }
}

@supports (height: 100dvh) {
  .page{ min-height: 100dvh; }
}

.page::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, var(--bg-overlay) 60%, rgba(0,0,0,.80) 100%);
}

.content{
  position:relative;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(26px + env(safe-area-inset-bottom));
  gap: 14px;
  text-align: center;
}

@supports (height: 100svh) {
  .content{ min-height: 100svh; }
}

@supports (height: 100dvh) {
  .content{ min-height: 100dvh; }
}

.brand-title{
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.15;
  font-weight: 800;
  margin:0;
}

.brand-subtitle{
  margin:0;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 36ch;
}

.welcome-border {
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%), rgba(0,0,0,0.45);
  box-shadow:
    0 6px 32px 0 rgba(44, 18, 94, 0.18),
    0 1.5px 0 0 #fff,
    0 0 0 4px rgba(255,255,255,0.10) inset;
  padding: clamp(14px, 4vw, 18px);
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Borda do portal com imagem de fundo */
.welcome-border.welcome-border-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.45);
}

.welcome-border.welcome-border-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: inherit;
  z-index: 0;
}

.welcome-border.welcome-border-image > * {
  position: relative;
  z-index: 1;
}

/* Borda do portal com cor personalizada */
.welcome-border.welcome-border-color {
  background: linear-gradient(135deg, #6c3af2 0%, #f26b1d 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(108, 58, 242, 0.37);
}

/* Layout do bloco principal (logo, título e texto) */
.portal-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
}

/* Logo do portal controlada por CSS */
.portal-logo{
  width:160px;
  height:160px;
  margin-bottom:12px;
  background-image: url('../../img/wispot/logo_icone_00.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Centraliza textos apenas no portal */
.welcome-border .brand-title,
.welcome-border .brand-subtitle{
  text-align: center;
}

/* Largura do texto no portal */
.welcome-border .brand-subtitle{ max-width: 40ch; margin-left:auto; margin-right:auto; }

/* A âncora botão do portal ocupa a largura e centraliza o texto */
.welcome-border a.button{ display:block; text-align:center; }

@media (max-width: 600px) {
  .welcome-border {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgba(0,0,0,0.45);
    padding: 18px 4px !important;
  }
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.button,
a.button {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  width: 100%;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.orange {
  background: #f26b1d;
  color: #fff;
}

.button.violet {
  background: #6c3af2;
  color: #fff;
}
