* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body {
    min-height: 100vh;

    background: #090c0f;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


.app {
    min-height: 100vh;
}


.screen {
    min-height: 100vh;

    padding: 28px 20px;
}


.hidden {
    display: none !important;
}



/* LOGIN */

#loginScreen {
    display: flex;

    align-items: center;
    justify-content: center;
}


.auth-container {
    width: 100%;

    max-width: 420px;
}


.brand {
    margin-bottom: 35px;
}


.brand-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 17px;

    background: white;

    color: black;

    font-weight: 800;
}


.brand h1 {
    margin: 0;

    font-size: 34px;
}


.brand p {
    color: #87919f;
}


.login-card {
    display: flex;

    flex-direction: column;

    gap: 17px;
}


.login-card h2 {
    margin: 0;
}


.login-card label {
    display: flex;

    flex-direction: column;

    gap: 8px;

    color: #9aa5b4;

    font-size: 14px;
}


.login-card input {
    height: 53px;

    border: 1px solid #252b33;

    border-radius: 13px;

    padding: 0 15px;

    background: #15191e;

    color: white;

    outline: none;
}


.primary-button {
    height: 54px;

    border: 0;

    border-radius: 13px;

    background: white;

    color: black;

    font-weight: bold;
}


.error {
    color: #ff6262;

    font-size: 14px;
}



/* DASHBOARD */

.dashboard-container {
    width: 100%;

    max-width: 650px;

    margin: auto;
}


.topbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 35px;
}


.small {
    color: #778497;

    font-size: 13px;
}


.topbar h1 {
    margin: 5px 0 0;

    font-size: 25px;
}


.logout {
    border: 1px solid #29303a;

    border-radius: 11px;

    padding: 10px 15px;

    background: transparent;

    color: #b7c0cc;
}



/* PC */

.device-card {
    padding: 25px;

    border: 1px solid #252b33;

    border-radius: 22px;

    background: #15191e;
}


.device-header {
    display: flex;

    justify-content: space-between;
}


.device-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #242a32;

    font-size: 22px;
}


.device-name {
    margin: 20px 0 5px;

    font-size: 24px;
}


.machine-name {
    color: #8591a0;

    font-size: 13px;
}



/* STATUS */

.status {
    height: fit-content;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: bold;
}


.status-online {
    color: #43dc88;

    background:
        rgba(45, 215, 121, 0.1);
}


.status-offline {
    color: #ff6767;

    background:
        rgba(255, 80, 80, 0.1);
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}



/* INFO */

.info-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 25px;
}


.info-box {
    padding: 16px;

    border-radius: 14px;

    background: #0d1014;
}


.info-label {
    display: block;

    margin-bottom: 8px;

    color: #788595;

    font-size: 12px;
}


.info-value {
    font-weight: bold;
}



/* AÇÕES */

.action-title {
    margin-top: 27px;

    margin-bottom: 12px;

    color: #7f8b99;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


.actions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.action-button {
    min-height: 70px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid #29303a;

    border-radius: 14px;

    background: #0e1115;

    color: white;

    transition: 0.2s;
}


.action-button:hover {
    background: #1b2027;
}


.action-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


.action-icon {
    font-size: 19px;
}


.action-label {
    font-size: 12px;

    font-weight: bold;
}


.shutdown-button {
    color: #ff6767;

    border-color:
        rgba(255, 103, 103, 0.25);
}



/* TOAST */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    transform:
        translateX(-50%)
        translateY(30px);

    min-width: 260px;

    max-width: calc(100% - 30px);

    padding: 14px 18px;

    border: 1px solid #303640;

    border-radius: 13px;

    background: #171b20;

    color: white;

    text-align: center;

    font-size: 14px;

    opacity: 0;

    visibility: hidden;

    transition: 0.25s;

    box-shadow:
        0 15px 50px
        rgba(0, 0, 0, 0.4);

    z-index: 999;
}


.toast.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


.toast.success {
    border-color:
        rgba(50, 220, 130, 0.35);
}


.toast.error {
    border-color:
        rgba(255, 80, 80, 0.4);

    color: #ff7b7b;
}



/* MENSAGENS */

.loading,
.empty {
    padding: 30px;

    border: 1px solid #252b33;

    border-radius: 20px;

    background: #15191e;

    text-align: center;

    color: #8591a0;
}



/* MOBILE */

@media (
    max-width: 520px
) {

    .screen {
        padding: 22px 16px;
    }


    .info-grid {
        grid-template-columns: 1fr;
    }


    .actions {
        grid-template-columns: 1fr;
    }


    .action-button {
        min-height: 55px;

        flex-direction: row;
    }

}