@import url("https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,500,600,700,800,900");
@import url("https://fonts.googleapis.com/css2?family=Aldrich&display=swap");
@import url("https://fonts.googleapis.com/css?family=Poppins");
@import url('https://fonts.cdnfonts.com/css/minecraft-4');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700;800&family=Anton&display=swap');
                
@font-face {
  font-family: "MonumentExtended";
  src: url("../fonts/monument/MonumentExtended-Regular.otf");
}
@font-face {
  font-family: "AntonRegular";
  src: url("../fonts/anton/Anton-Regular.ttf");
}

:root{
    --red: #c7001f;
    --gray: #1a1a1a;
    --gray2: #292929;
    --white: #f7f7f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "MonumentExtended", sans-serif;
    font-weight: 400;
    font-size: 16px;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background-image: url("../images/bg.jpg");
    background-size: cover;
}

.super-container {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    display: flex;
}

.container{
    width: 60vw;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: #1a1a1a 0px 10px 20px -10px;
    display: flex;
    flex-direction: row;
}

.container.is-register{
    height: calc(600px + 90px);
}

.container .animation{
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.images-above-animation{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.images-above-animation img{
    height: auto;
    max-width: 100%;
    display: block;
}

.container .animation .lottie{
    width: clamp(220px, 28vw, 520px) !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-width: 100%;
}

.container .auth{
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 50%;
    padding: 40px 32px;
}

.auth-panel{
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
}

.auth-panel.is-active{
    display: flex;
}

@media (max-width: 900px){
    .container{
        width: min(560px, 92vw);
        height: auto;
        min-height: 80vh;
        flex-direction: column;
    }

    .container.is-register{
        height: auto;
        min-height: calc(80vh + 180px);
    }

    .container .animation{
        padding: 28px 24px 12px;
    }

    .container .animation .lottie{
        width: clamp(220px, 70vw, 420px) !important;
    }

    .container .auth{
        padding: 20px 24px 32px;
    }
}

.auth-panel form{
    width: min(360px, 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.auth-panel input{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    background: #fff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-panel p{
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
    font-family: "Roboto Condensed", sans-serif;
    padding-top: 12px;
}

.auth-panel p a{
    color: var(--red);
    font-size: 16px;
    font-weight: 500;
    font-family: "Roboto Condensed", sans-serif;
    text-decoration: none;
}

.auth-panel input::placeholder{
    color: rgba(0, 0, 0, 0.45);
}

.auth-panel input:focus{
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(199, 0, 31, 0.14);
}

.auth-panel button{
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--red);
    transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 18px -12px;
}

.auth-panel button:hover{
    filter: brightness(1.05);
}

.auth-panel button:active{
    transform: translateY(1px);
}

.auth-panel h1{
    color: var(--gray);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-family: "Roboto Condensed", sans-serif;
}

/* Role toggle (Register) */
.role-toggle{
    width: min(360px, 100%);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(26, 26, 26, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
    user-select: none;
}

.role-toggle label{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-toggle input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-toggle span{
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.72);
    cursor: pointer;
    transition: color 160ms ease;
}

.role-toggle .slider{
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 6px;
    width: calc((100% - 12px - 12px) / 3);
    height: calc(100% - 12px);
    border-radius: 10px;
    background: var(--red);
    box-shadow: rgba(199, 0, 31, 0.35) 0px 10px 18px -12px;
    transform: translateX(0%);
    transition: transform 180ms ease;
}

.role-toggle[data-selected="player"] .slider{ transform: translateX(0%); }
.role-toggle[data-selected="official"] .slider{ transform: translateX(100%); }
.role-toggle[data-selected="both"] .slider{ transform: translateX(200%); }

.role-toggle[data-selected="player"] label:nth-child(1) span,
.role-toggle[data-selected="official"] label:nth-child(2) span,
.role-toggle[data-selected="both"] label:nth-child(3) span{
    color: #fff;
}

#chosenRole{
    width: min(360px, 100%);
    padding-top: 4px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.75);
}
