@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Sometype+Mono:wght@700&display=swap');

:root {
    --brand: 0, 0, 255;
    --brand-rgb: rgb(var(--brand));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    min-width: 100vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
}

.card {
    padding: 2rem;
    width: 100vw;
    text-align: center;
}

.logo {
    width: min(200px, 33%);
    height: auto;
}

.password-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.password-text {
    font-family: 'Sometype Mono', monospace;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    word-break: break-all;
    user-select: all;
}

.weak-strong {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    width: min(700px, calc(100% - 2rem));
    font-size: 1rem;
    color: #000;
    margin: 1rem auto;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: min(700px, calc(100% - 2rem));
    height: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(to right, rgba(var(--brand), 0.25), rgba(var(--brand), 1));
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: 0.25rem solid var(--brand-rgb);
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:focus {
    transform: scale(1.25);
}

input[type="range"]::-moz-range-thumb {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: 0.25rem solid var(--brand-rgb);
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb:hover,
input[type="range"]::-moz-range-thumb:focus {
    transform: scale(1.25);
}

input[type="range"]::-moz-range-track {
    background: transparent;
}

input[type="range"]:focus-visible {
    outline: 3px solid var(--brand-rgb);
    outline-offset: 4px;
}

button {
    font-family: inherit;
    margin: 0 auto;
    background: var(--brand-rgb);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    min-height: 44px;
    min-width: 44px;
}

button:focus-visible {
    outline: 3px solid var(--brand-rgb);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}