@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&family=Vollkorn&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Rochester&display=swap');

@font-face {
    font-family: 'ALSRubl';
    src: url('/fonts/ruble.ttf');
}

:root{
    --black-color: #1B1B1B;
    --main-text-color: #F4F4F4;
    --second-text-color: #D9DAFF;
    --default-width: 1240px;
    --default-inline-padding: 15px;
}

*{
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
    margin: 0;
}
body{
    padding:0;
    background-color: var(--black-color);
}
img{
    max-width: 100%;
}

h1,h2,h3,h4{
    color: var(--main-text-color);
}

#authSection{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    margin-top:100px;
    padding-left: 12px;
    padding-right: 12px;
}

#authSection > div:last-child{
    border: 1px solid var(--main-text-color);
    padding: 32px;
    display: grid;
    align-items: center;
}
#authSection > div{
    position: relative;
}
#authSection > div > img{
    object-fit: cover;
    height: 100%;
    width: 100%;
}
#backButton{
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 18px;
    padding: 8px 12px;
    color: var(--black-color);
    padding-right: 18px;
}
#backButton > img{
    width: 32px;
}

#backButton:hover{
    background-color: var(--second-text-color);
}

.authForm{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.authForm > h1{
    text-align: center;
    font-size: 24px;
}

.authForm > a{
    color: var(--main-text-color);
    opacity: .7;
    text-decoration: none;
    text-align: center;
}

.authForm > a:hover{
    opacity: 1;
    text-decoration: underline;
}

#authMessage{
    color: #ff1c1c;
    text-align: center;
}

label:has(#codeInput), #codeInput{
    text-align: center;
}

@media screen and (max-width:768px) {
    #authSection{
        grid-template-columns: 1fr;
        grid-template-rows: 300px auto;
        margin: 50px 0;
    }
}