@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.1), transparent 25%), radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.12), transparent 22%), #0b1020;
    color: #c9d1d9;
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: 1.5rem auto;
}

.layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

section {
    margin-bottom: 2rem;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #58a6ff;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

a {
    color: #8b5cf6;
    text-decoration: underline;
    text-decoration-color: rgba(139, 92, 246, 0.5);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #30363d;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Space Mono', 'SFMono-Regular', Menlo, monospace;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="password"]:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 5px rgba(88, 166, 255, 0.8);
}

/* Styles for the password input section */
#password-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.inputs-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 800px;
}

.inputs-row .password-col {
    flex: 1;
}

#password-input .crack-btn {
    padding: 1rem;
    border: 1px solid #58a6ff;
    border-radius: 4px;
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.12), rgba(139, 92, 246, 0.12));
    color: #fff;
    font-size: 1rem;
    font-family: 'Space Mono', 'SFMono-Regular', Menlo, monospace;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    margin-top: calc(1.5em + 0.5rem);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

#password-input .crack-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 12px rgba(88, 166, 255, 0.25);
    border-color: #8b5cf6;
}

#password-input input[type="password"],
#password-input input[type="text"] {
    padding: 1rem;
    border-color: transparent;
    color: #58a6ff;
}

#password-input h2 {
    width: 100%;
}

#password-attempts {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem 0;
    font-family: 'Space Mono', 'SFMono-Regular', Menlo, monospace;
}

#crack-output {
    width: 100%;
    max-width: 500px;
    background: #0d1117;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    font-family: 'Space Mono', 'SFMono-Regular', Menlo, monospace;
}

#crack-output strong {
    display: block;
    margin-bottom: 0.5rem;
}

.crack-log {
    color: #58a6ff;
}

.overview-image {
    display: block;
    margin: 1rem auto;
    max-width: 400px;
    width: 100%;
    height: auto;
}