/* ============================= */
/* GENERAL STYLES */
/* ============================= */
body {
    background-color: #000000;
    font-family: 'Nationale Regular', sans-serif;
    color: #ddd;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    margin: 0;
}

.icon-logo {
  width: 30px;
  margin-bottom: 10px;
}

@keyframes fade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade {
  animation: fade 0.3s ease-out;
  transition: opacity 0.3s ease;
}

/* ============================= */
/* FONTS */
/* ============================= */
@font-face {
    font-family: 'Nationale Regular';
    src: url('./fonts/Nationale-Regular.woff2') format('woff2'),
         url('./fonts/Nationale-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Nationale Bold';
    src: url('./fonts/Nationale-Bold.woff2') format('woff2'),
         url('./fonts/Nationale-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Nationale Black';
    src: url('./fonts/Nationale-Black.woff2') format('woff2'),
         url('./fonts/Nationale-Black.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* ============================= */
/* PAGE CONTAINER */
/* ============================= */
.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ============================= */
/* CARD STYLES */
/* ============================= */
.card {
    background-color: #262626;
    border-radius: 20px;
    padding: 40px 24px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================= */
/* PROFILE & PHOTO */
/* ============================= */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.profile-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #575757;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}
.profile-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.add-photo-text {
    color: #c4c4c4;
    font-size: 0.8rem;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* ============================= */
/* FORM */
/* ============================= */
form {
    width: 100%;
}
.form-group {
      margin-bottom: 0px; /* Reduz a margem padrão para 0 */
    padding-bottom: 16px; /* Adiciona o espaçamento como padding */
}
.input-label {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}
.input-field {
    font-family: 'Nationale Regular';
    background-color: #3e3e3e;
    border: none;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.input-field::placeholder {
    color: #9e9e9e;
}
.input-field:focus {
    outline: none;
    border: 2px solid #ffffff;
}

/* ============================= */
/* USERNAME INPUT & CHECKMARK */
/* ============================= */
.input-group-user {
    position: relative;
    display: flex;
    align-items: right;
}
.input-group-user .input-field {
    padding-left: 45px;
}
.input-group-user .at-symbol {
    position: absolute;
    left: 16px;
    color: #9e9e9e;
    font-size: 1rem;
    pointer-events: none;
}
.check-icon {
    position: absolute;
    right: 16px;
    color: #4CAF50;
    font-size: 24px;
}

/* ============================= */
/* PASSWORD NOTE */
/* ============================= */
.password-note {
    font-size: 0.75rem;
    color: #9e9e9e;
    margin-top: 8px;
    padding: 0 10px;
}

/* ============================= */
/* MAIN BUTTON */
/* ============================= */
.main-button {
    width: 100%;
    padding: 16px 0;
    margin-top: 0px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    text-align: center;
    border: none;
    font-family: 'Nationale Regular';
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}
.main-button:hover {
    background-color: #9e9e9e;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 0%;
  margin-bottom: 50px; /* Espaçamento inferior */
}


.checkbox-container label {
  text-align: center;
 font-family: 'Nationale Regular';  font-size: 14px;
  color: #989898; /* Cor do texto */
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-container .link-tidal {
  color: #fff; /* Cor dos links */
  text-decoration: none; /* Remove sublinhado padrão */
  font-weight: bold; /* Deixa o texto dos links em negrito */
}

.checkbox-container .link-tidal:hover {
  text-decoration: underline; /* Adiciona sublinhado ao passar o mouse */
}

/* ============================= */
/* TOASTS */
/* ============================= */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 1000;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    max-width: 350px;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
    transition: opacity 0.5s, transform 0.5s;
}

.toast.success {
    background-color: #4CAF50; /* Verde para sucesso */
}

.toast.error {
    background-color: #f44336; /* Vermelho para erro */
}

/* Animação para aparecer e desaparecer */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.profile-frame {
    position: relative; /* Necessário para posicionar o label absoluto dentro dele */
    width: 120px; /* Ajuste conforme o tamanho do seu .profile-frame */
    height: 120px; /* Ajuste conforme o tamanho do seu .profile-frame */
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer; /* Indica que é clicável */
    display: flex; /* Para centralizar a imagem */
    justify-content: center;
    align-items: center;
    background-color: #333; /* Cor de fundo se a imagem não carregar ou for transparente */
}

.profile-icon {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o frame sem distorcer */
    display: block; /* Remove espaço extra abaixo da imagem */
}

.add-photo-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer; /* O cursor de ponteiro é importante */
    z-index: 10; /* Garante que o label esteja acima da imagem */
}

/* Se você quiser que o texto "ADICIONAR FOTO" também seja clicável, pode deixar assim */
.profile-section {
    text-align: center;
    margin-bottom: 20px;
}
.add-photo-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.input-group-user {
    display: flex; /* Ou grid */
    align-items: center; /* Para alinhar o @, input e ícone na mesma linha */
    /* ... outros estilos ... */
}

/* Este é o container que precisa empilhar VERTICALMENTE */
/* Pode ser o próprio .card, ou um div específico em volta de .input-group-user e o feedback */
.card { /* Ou outro seletor mais específico */
    display: flex;
    flex-direction: column; /* Garante que os elementos (incluindo o feedback) fiquem um embaixo do outro */
    gap: 16px; /* Exemplo de espaçamento */
}
.username-feedback {
    display: block;
    margin-top: 8px;
    margin-bottom:2x; /* Adiciona espaçamento apenas quando o parágrafo estiver visível */
    font-size: 0.85rem;
    width: 100%;
}

/* Adicione esta regra ao seu CSS */
.username-input-container {
    align-self: flex-start; /* Alinha o item à esquerda */
    display: flex;
    flex-direction: column;
}

/* Avatar container */
#AvatarFileUpload {
  position: relative;
  width: 120px;
  height: 120px;
  background: #f9f9f9; /* Pode manter um fundo padrão para casos de erro */
  border: 2px solid #575757;
  border-radius: 50%;
  margin: auto;
  overflow: hidden; /* ESSENCIAL para cortar o que excede o círculo */
  cursor: pointer;
}

#AvatarFileUpload .selected-image-holder {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Garante que o holder também seja circular */
  overflow: hidden; /* ESSENCIAL para cortar o que excede o círculo dentro do holder */
}

#AvatarFileUpload .selected-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* MUDEI PARA 'COVER'! Isso fará a imagem preencher todo o espaço, cortando as partes que excedem */
  object-position: center center; /* MUDEI PARA 'CENTER CENTER'! Isso vai centralizar a imagem dentro do contêiner, garantindo que o foco principal fique no meio */
  /* Removi border-radius aqui, pois o pai já tem e o overflow está cuidando do corte */
  background: #f9f9f9; /* Fundo para garantir que não apareça preto se a imagem tiver transparência */
  transition: 0.3s;
}

/* Hover opcional: escurece levemente e mostra efeito */
#AvatarFileUpload:hover .selected-image-holder img {
  filter: brightness(0.8);
}

/* Input invisível cobrindo toda a área */
#AvatarFileUpload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1; /* Garante que o input esteja acima da imagem para ser clicável */
}
/* Centralizar tela de manutenção */
.maintenance-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 80vh;
  padding: 20px;
  text-align: center;
}

.maintenance-icon {
  width: 100px;
  max-width: 80%;
  height: auto;
}

.headline {
    font-family: 'Nationale Black';
    text-transform: uppercase;
    font-size: 2rem;
  color: hsl(0, 0%, 100%);
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  color: #ccccccaf;
  padding: 2% 20% 2% 20%;
  max-width: 400px;
}

/* Container do input com posição relativa */
.input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
/* Container do input */
.input-group-user {
    position: relative; /* essencial para o ícone absoluto */
    display: flex;
    align-items: center;
}

/* Símbolo @ */
.at-symbol {
    margin-right: 4px;
    font-weight: bold;
}

/* Input */
.input-field {
    flex: 1;
    padding-right: 30px; /* espaço para o ícone */
}

.input-group-user {
    position: relative;
    display: flex;
    align-items: center;
}

.status-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.status-icon.visible {
    opacity: 1;
}

/* Filtro para colorir o SVG */
.status-icon.error {
    filter: invert(27%) sepia(94%) saturate(7151%) hue-rotate(356deg) brightness(91%) contrast(114%);
}

.status-icon.success {
    filter: brightness(100%) contrast(100%);
}

/* 1. Logo */
.main-logo-tidal {
    width: 100px; /* Tamanho da logo */
    height: 100px;
    margin-top: 20px;
}

.logo-area {

    margin-bottom: 40px;
    text-align: center;
}

/* Defina o estilo base para o botão "Sou Artista" */
.artist-toggle-button {
    /* ... (Seu estilo base permanece o mesmo) ... */
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out; 
    margin-bottom: 20px;
}

/* 🚨 NOVO PADRÃO: Estado inicial (Não Selecionado) - Opacidade Total (1.0) */
/* Remova a classe 'inactive' se não for usá-la. Definiremos o estado inicial (1.0) 
   diretamente no estilo base ou garantindo que a classe 'active' não esteja presente. */
.artist-toggle-button {
    opacity: 1.0; /* Inicia com alpha total */
}

/* 🚨 NOVO ESTADO SELECIONADO: Opacidade Reduzida (0.5) */
.artist-toggle-button.selected {
    opacity: 0.5; /* Opacidade reduzida para indicar que está selecionado/toggled */
}

/* Remove qualquer recuo padrão do parágrafo e força alinhamento */
p.approval-note {

    padding: 0 !important; /* Reseta paddings que podem vir de outras classes */
    margin-bottom: 20px !important; /* Espaço apenas para o botão abaixo */
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #bdbdbd;
    line-height: 1.4;
    width: 100%;
    display: block;
}

/* Garante que o ícone não empurre o texto para baixo */
.approval-note i {
    margin-right: 5px;
    display: inline-block;
}

/* Ajuste da Checkbox para não ter margens laterais */
.checkbox-container {
    padding: 0 !important;
    margin: 15px 0 15px 0 !important;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* Força início à esquerda */
    width: 100%;
}

.checkbox-container input[type="checkbox"] {
    margin: 4px 8px 0 0 !important; /* Ajusta apenas o espaço entre o check e o texto */
}

.checkbox-container label {
    margin: 0 !important;
    text-align: left;
}

/* Estilo do Círculo de Iniciais */
.selected-image-holder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #1DB954; /* Cor tema do TUNE ou cinza #282828 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

#avatar-initials {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: sans-serif;
    user-select: none;
}

#profile-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}