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

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: #4f46e5;
}

/* =====================================
   PÁGINA INICIAL
   ===================================== */

.pagina-inicial {
    min-height: 100vh;
    background: #ffffff;
    color: #111827;
    overflow: hidden;
}

.inicio {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.inicio-conteudo {
    width: min(900px, 100%);
    text-align: center;
}

.inicio-conteudo h1 {
    margin-bottom: 38px;

    font-size: clamp(38px, 7vw, 64px);
    line-height: 1;

    color: #111827;
}

.andares {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    max-width: 700px;

    margin: 0 auto;
}

.botao-andar {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 22px;

    border-radius: 14px;

    background: #111827;
    color: #ffffff;

    text-decoration: none;

    font-size: 22px;
    font-weight: 700;

    transition: transform .15s ease, background .15s ease;
}

.botao-andar:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

.botao-andar:active {
    transform: translateY(0);
}

/* =====================================
   LOGIN / CADASTRO
   ===================================== */

.container {
    min-height: 100vh;
    width: 100%;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000000;
}

.login-box {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    padding: 35px;

    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);

    border: 1px solid #222;
}

.login-box h1 {
    text-align: center;

    color: #111827;

    margin-bottom: 8px;
}

.subtitulo {
    text-align: center;

    color: #6b7280;

    margin-bottom: 25px;
}

.login-box label {
    display: block;

    color: #333;

    font-weight: bold;

    margin-bottom: 7px;
}

.login-box input {
    width: 100%;

    padding: 13px;

    margin-bottom: 18px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    font-size: 16px;

    outline: none;
}

.login-box input:focus {
    border-color: #4f46e5;

    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.login-box button {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 8px;

    background: #4f46e5;
    color: #ffffff;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.login-box button:hover {
    background: #4338ca;
}

.login-box button:disabled {
    opacity: .65;

    cursor: not-allowed;
}

.link-cadastro {
    text-align: center;

    margin-top: 20px;

    color: #555;
}

.login-box a {
    color: #4f46e5;

    font-weight: bold;

    text-decoration: none;
}

.mensagem {
    min-height: 22px;

    text-align: center;

    margin-top: 15px;

    font-weight: bold;
}

/* =====================================
   MAPA DO ANDAR
   ===================================== */

.pagina-mapa {
    min-height: 100vh;

    background: #4f46e5;
}

.barra-mapa {
    position: fixed;

    top: 14px;
    left: 14px;
    right: 14px;

    z-index: 10000;

    height: 52px;

    padding: 0 10px;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 10px;

    pointer-events: none;
}

.barra-mapa strong {
    justify-self: center;

    padding: 10px 16px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .92);

    color: #111827;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

#mapa-viewport {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    touch-action: none;

    cursor: grab;

    background: inherit;
}

#mapa-viewport.arrastando {
    cursor: grabbing;
}

#site {
    position: absolute;

    left: 0;
    top: 0;

    width: 3000px;
    height: 2000px;

    overflow: visible;

    transform: none;

    transform-origin: 0 0;

    contain: none;
}

.elemento-site {
    position: absolute;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    font-weight: bold;
}

.elemento-site img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    user-select: none;
}

.imagem-publica {
    overflow: visible;
}

.separador-site {
    border-radius: 999px;
}

/* =====================================
   RESPONSIVO
   ===================================== */

@media (max-width: 768px) {

    .andares {
        grid-template-columns: 1fr;
    }

    .botao-andar {
        min-height: 64px;

        font-size: 20px;
    }

    .login-box {
        max-width: 100%;

        padding: 28px 22px;
    }

    .container {
        padding: 15px;
    }

    .login-box input,
    .login-box button {
        min-height: 46px;
    }

    .barra-mapa {
        top: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {

    .inicio {
        padding: 18px;
    }

    .inicio-conteudo h1 {
        margin-bottom: 30px;
    }

    .login-box {
        padding: 24px 18px;

        border-radius: 14px;
    }

    .login-box h1 {
        font-size: 23px;
    }

    .subtitulo {
        font-size: 14px;
    }

    .barra-mapa strong {
        padding: 8px 10px;

        font-size: 12px;
    }
}