@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend Dexa', sans-serif;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 140vw;
    height: 140vh;
    background:
        radial-gradient(1400px 720px at 15% -10%, rgba(122, 162, 247, .40), transparent 60%),
        radial-gradient(1300px 760px at 120% 5%, rgba(42, 195, 222, .32), transparent 60%),
        radial-gradient(1100px 620px at -10% 90%, rgba(187, 154, 247, .28), transparent 60%),
        radial-gradient(900px 540px at 50% 120%, rgba(224, 175, 104, .22), transparent 70%);
    z-index: 0;
    /* ring layer */
    pointer-events: none;
    background-repeat: no-repeat;
    background-attachment: fixed;
    will-change: transform, filter, opacity;
    animation: bgSafeDrift 24s infinite ease-in-out alternate;
}

/* Extra glow layer for a more vibrant look */
body::after {
    content: "";
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 140vw;
    height: 140vh;
    pointer-events: none;
    background:
        radial-gradient(380px 380px at 20% 30%, rgba(90, 141, 255, .35), transparent 70%),
        radial-gradient(460px 460px at 80% 70%, rgba(255, 185, 60, .28), transparent 70%),
        radial-gradient(320px 320px at 75% 20%, rgba(60, 215, 255, .28), transparent 72%),
        radial-gradient(300px 300px at 25% 80%, rgba(220, 120, 255, .26), transparent 72%);
    mix-blend-mode: screen;
    filter: blur(16px) saturate(150%);
    opacity: .9;
    z-index: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    will-change: transform, opacity;
    animation: orbSafeFloat 30s infinite ease-in-out alternate;
}

:root {
    --bg: #1a1b26;
    --white: #FFF;
    --whitesmoke: #F9F9F9;
    --light-grey: #ECECEC;
    --grey: #C4C4C4;
    --medium-grey: #A7A7A7;
    --deep-grey: #343434;
    --black: #000000;
    --blue: #1B77F3;
    --red: #CF3C3F;
    --orange: #ff6035;
}

main {
    display: flex;
}

.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    padding: clamp(35px, 8%, 70px);
}

.logo {
    width: 250px;
    margin-bottom: 80px;
}

.titulo {
    color: var(--deep-grey);
    font-size: 1.5em;
    margin-bottom: 30px;
}

.label {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 0.9em;
    padding: 25px 10px 10px;
    font-weight: 600px;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0);
}

.label span {
    position: absolute;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--medium-grey);
    margin: 20px;
    cursor: text;
    transition: 0.2s ease-in-out;
}

.input:focus {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--deep-grey);
}

.label .span-active {
    font-size: 0.7em;
    margin: 8px 10px;
    transition: 0.2s ease-in-out;
}

/* Center elements inside the login form (button) */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icones {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.icones img {
    width: 20px;
}

.iconesDeBotoes {
    width: 33.33%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.icones .iconesDeBotoes:nth-child(1) {
    background-color: var(--blue);
}

.icones .iconesDeBotoes:nth-child(2) {
    background-color: var(--light-grey);
}

.icones .iconesDeBotoes:nth-child(3) {
    background-color: var(--deep-grey);
}

.label--checkbox {
    width: 100%;
    margin: 15px 0px 50px;
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.input--checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--light-grey);
    margin-right: 8px;
    border-radius: 3px;
}

.input--checkbox:checked {
    background-color: var(--red);
}

.input--checkbox:checked::after {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    border: 3px solid var(--white);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin: 2px 6px;
}

.botaoDeLogin {
    width: 60px;
    height: 60px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange);
    border-radius: 20px;
    border: none;
    cursor: pointer;
    margin: 20px auto 60px;
}

.botaoDeLogin svg {
    fill: var(--white);
}

.botaoDeLogin:disabled {
    cursor: auto;
    background-color: var(--white);
    border: 2px solid var(--light-grey);
}

.botaoDeLogin:disabled svg {
    fill: var(--grey);
}

.link {
    font-size: 0.8em;
    text-decoration: none;
    color: var(--medium-grey);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 700;
}

.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.wallpaper {
    width: 100%;
    background-size: cover;
    background-position: center;
    /* Use relative path from css/ to images/ since Jinja is not processed in static CSS */
    background-image: url('../images/wallpaper.jpg');
    flex: 1;
}