:root {
    --accent: #7aa2f7;
    --bg: #020617;
    --card: #0e172a;
    --dark: #1d222f;
    --muted: #515f85;
    --text: #bccbe3;
    --accent: #2280b7;
    --accent-2: #6d46c6;
}

body {
    margin: 0;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Inter,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    background:
        radial-gradient(1200px 800px at 80% -10%, rgba(139, 92, 246, 0.15), transparent 60%),
        radial-gradient(900px 700px at -10% 20%, rgba(110, 231, 255, 0.1), transparent 60%), var(--bg);
    /* Dot Pattern Background */
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#create-view {
    width: 100%;
    max-width: 900px;
}

h2 {
    font-size: 32px;
}

h1,
h2,
h3 {
    font-weight: 500;
    color: var(--muted);
}

.margin-top--md {
    margin-top: 40px;
}

textarea,
input {
    color: var(--text);
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0 1rem;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid var(--dark);
    background: var(--card);
}

::placeholder {
    color: var(--muted) !important;
}

textarea {
    resize: none;
    height: 200px;
}
label {
    font-size: 14px;
}
button {
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background: var(--accent-2);
    color: var(--text);
}
#result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--dark);
    word-break: break-all;
    display: none;
    border-radius: 8px;
    color: var(--text);
}
#secret-display {
    background: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
    color: var(--text);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    flex: 1;
    padding-right: 2.5rem; /* make room for the button */
}

.toggle-password {
    position: absolute;
    top: 0.9rem;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}
