@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cabin:ital,wght@0,400..700;1,400..700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cabin", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    background-color: black;
    background-image: url("/assets/img/background/bg.png");
    background-size: cover;
    background-position: center;
    padding: 20px;
    overflow-y: auto;
}

.container {
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
    background-color: black;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 30px 40px;
    box-shadow: blue 0px 0px 0px 2px inset, rgb(0, 0, 0) 10px -10px 0px -3px,
        rgb(255, 251, 22) 10px -10px, rgb(0, 0, 0) 20px -20px 0px -3px,
        rgb(255, 19, 19) 20px -20px;
}

.header-register {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-register h1 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 500;
    font-size: 50px;
    font-style: normal;
    margin-left: 0;
}

.pogonit {
    height: 80px;
    border-radius: 6px;
    margin-left: 10px;
}

/* Novo estilo para a informação do avatar */
.avatar-info {
    color: #ccc;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid;
    border-radius: 40px;
    outline: none;
    font-size: 15px;
    color: white;
    padding: 20px 45px 20px 20px;
}
.teams {
    display: flex;
    gap: 25px;
    justify-content: center;
    padding: 20px 45px 20px 20px;
}

.teams label {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.teams input {
    display: none;
}

.teams img {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 10px;
}

.mystic {
    background-image: url("/assets/img/mystic.png");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: right top;
}
.mystic:hover {
    transform: scale(1.05);
    transition: 0.6s;
}
.mystic input:checked + img {
    border: 2px solid blue;
    transform: scale(1.1);
}
.instinct {
    background-image: url("/assets/img/instinct.png");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: right top;
}
.instinct:hover {
    transform: scale(1.05);
    transition: 0.6s;
}
.instinct input:checked + img {
    border: 2px solid yellow;
    transform: scale(1.1);
}
.valor {
    background-image: url("/assets/img/valor.png");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: right top;
}
.valor:hover {
    transform: scale(1.05);
    transition: 0.6s;
}
.valor input:checked + img {
    border: 2px solid red;
    transform: scale(1.1);
}

.register {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 40px;
    background: white;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding-left: 20px;
    border: 3px solid transparent;
}

.register video {
    position: absolute;
    left: 10px;
    width: 40px;
    height: auto;
    display: none;
    z-index: 1;
    border-radius: 50%;
}

.register:hover video {
    display: block;
}

.register:hover {
    background-color: black;
    animation: bordaColorida 12s infinite linear;
    color: #fff;
}

@keyframes bordaColorida {
    0% {
        border-color: rgb(0, 4, 255);
    }
    20% {
        border-color: rgb(0, 204, 255);
    }
    40% {
        border-color: rgb(255, 251, 0);
    }
    60% {
        border-color: rgb(255, 196, 0);
    }
    80% {
        border-color: rgb(255, 8, 0);
    }
    100% {
        border-color: rgb(255, 0, 0);
    }
}
.register a:hover {
    text-decoration: underline;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    padding: 15px 10px 2px;
    gap: 20px;
}

.social a {
    text-decoration: none;
    color: #fff;
}

.avatar-selector {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    justify-content: center;
    position: relative;
}

#selected-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid rgb(255, 255, 255);
    transition: 0.3s ease;
    padding: 5px 0;
}

#selected-avatar img:hover {
    transform: scale(1.05);
    border-color: white;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    width: fit-content;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
}

.dropdown-options img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.dropdown-options img:hover {
    border-color: rgb(255, 255, 255);
    transform: scale(1.1);
}

.dropdown-options.show {
    display: grid;
}

#toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

/* OTIMIZAÇÕES PARA TELAS PEQUENAS (celulares) */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    /* Alinhamento do cabeçalho em linha (inline) */
    .header-register {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .header-register h1 {
        font-size: 38px;
        margin-left: 0;
    }
    
    .pogonit {
        height: 50px; /* Reduz ainda mais o tamanho do logo */
        margin-left: 0;
    }
    
    .input-box {
        margin: 20px 0;
    }
    
    .input-box input {
        padding: 15px 45px 15px 15px;
    }
    
    .teams {
        gap: 10px;
        padding: 10px 0;
    }
    
    .teams img {
        width: 60px;
        height: 60px;
    }
    
    .teams label {
        transform: none;
    }
    
    .register {
        height: 45px;
        font-size: 18px;
    }
}