* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 12vh 24px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;

    background-color: rgb(24, 23, 33);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.title {
    margin: 0;

    font-family: 'Kumar One', serif;
    font-size: clamp(40px, 9vw, 65px);
    text-align: center;

    color: rgba(252, 251, 251, 0.89);
}

.container {
    width: 100%;
    max-width: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.text {
    font-family: 'Kumar One', serif;
    font-size: 20px;
    text-align: center;

    color: rgb(253, 253, 253);
}

.line {
    width: 100%;

    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

input[type="password"] {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 10px;

    background-color: gray;
    color: black;
    font-size: 16px;

    border: 7px solid gray;
    border-radius: 10px;

    cursor: text;
    outline: none;
}

input[type="password"]:focus {
    border-color: rgb(73, 64, 196);
}

input::placeholder {
    color: rgba(0, 0, 0, 0.63);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.button {
    min-width: 50px;
    height: 50px;
    padding: 0 18px;

    background-color: rgb(73, 64, 196);
    color: rgb(253, 253, 253);
    font-family: 'Kumar One', serif;
    font-size: 14px;

    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: rgb(61, 53, 170);
}

.button:focus-visible {
    outline: 2px solid rgb(253, 253, 253);
    outline-offset: 2px;
}

.button:disabled {
    opacity: 0.6;
    cursor: default;
}

.result {
    width: 100%;
    margin-top: 8px;
    padding: 28px 20px;

    background-color: rgb(34, 33, 46);
    color: rgb(253, 253, 253);
    text-align: center;

    border: 3px solid gray;
    border-radius: 10px;
}

.result[hidden] {
    display: none;
}

.count {
    display: block;

    font-family: 'Kumar One', serif;
    font-size: 40px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.count:empty {
    display: none;
}

.message {
    display: block;
    font-size: 15px;
    line-height: 1.4;

    color: rgb(200, 199, 212);
}

.count:not(:empty) + .message {
    margin-top: 10px;
}

.result.loading {
    border-color: rgb(73, 64, 196);
}

.result.leaked {
    border-color: rgb(214, 80, 90);
}

.result.leaked .count {
    color: rgb(240, 110, 118);
}

.result.safe {
    border-color: rgb(80, 176, 120);
}

.result.safe .count {
    color: rgb(110, 200, 145);
}

.result.error {
    border-color: rgb(214, 80, 90);
}

.note {
    margin: 4px 0 0;

    font-size: 13px;
    line-height: 1.4;
    text-align: center;

    color: rgb(140, 138, 158);
}
