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

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f6fb;
}

.login-box,
.dashboard {
    width: min(92%, 420px);
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

h2 {

    text-align: center;

    margin-bottom: 25px;

}

input,
select,
button {

    width: 100%;

    padding: 14px;

    font-size: 16px;

    border-radius: 10px;

}

button {

    width: 100%;

    padding: 14px;

    background: #2563eb;

    border: none;

    color: white;

    font-size: 16px;

    cursor: pointer;

    border-radius: 8px;

    transition: .3s;

}

button:hover {

    background: #1d4ed8;

}

#msg {

    margin-top: 15px;

    text-align: center;

    color: red;

}

#result {

    margin-top: 20px;

    padding: 15px;

    border-radius: 8px;

    background: #eef6ff;

    word-break: break-all;

}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.logout-btn {

    width: auto;

    padding: 10px 18px;

    background: #ef4444;

}

.logout-btn:hover {

    background: #dc2626;

}

.result-box {

    margin-top: 25px;

}

.link-box {

    display: flex;

    gap: 10px;

    align-items: center;

    flex-wrap: wrap;

}

.link-box input {

    flex: 1;

    min-width: 0;

}

.link-box button {

    width: 110px;

    flex-shrink: 0;

}

.link-box button:hover {

    background: #16a34a;

}


@media (max-width:600px) {

    body {

        padding: 15px;

        /* align-items: flex-start; */

    }

    .login-box,
    .dashboard {

        width: 100%;

        padding: 20px;

        margin-top: 25px;

    }

    h2 {

        font-size: 22px;

    }

    .top-bar {

        flex-direction: column;

        align-items: stretch;

    }

    .logout-btn {

        width: 100%;

    }

    .link-box {

        flex-direction: column;

    }

    .link-box input {

        width: 100%;

    }

    .link-box button {

        width: 100%;

    }

}

.generta-btn {
    margin-top: 10px;
}

.home-input {
    border: solid 1px rgb(162, 162, 162);
    margin-bottom: 15px;
}