body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f7f8fc 0%, #eef1f8 100%);
    color: #2d3142;
}

header {
    background-color: #3A4384;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

main {
    padding: 20px;
}

.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: min(100%, 680px);
    justify-content: center;
}

#search-input {
    flex: 1 1 240px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
    min-width: 0;
}

#search-input:focus {
    border-color: #4CAF50;
}

button {
    padding: 10px;
    border: none;
    background-color: #3A4384;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    opacity: 0.75;
    cursor: wait;
}

#password-input {
    flex: 1 1 220px;
    padding: 10px;
    border: 1px solid #ccc;
    outline: none;
    min-width: 0;
}

#results.results-card {
    background-color: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(40, 50, 90, 0.12);
    text-align: center;
    min-height: 112px;
}

.loading-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    color: #3a4384;
}

.loading-card p {
    margin: 0.25rem 0 0;
    font-size: 1rem;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(58, 67, 132, 0.15);
    border-top-color: #3a4384;
    animation: spin 0.9s linear infinite;
}

.results-error {
    color: #a32121;
}

.results-error strong {
    color: #7b1f1f;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-section {
    margin-top: 20px;
}

@media (max-width: 720px) {
    #search-form {
        flex-direction: column;
    }

    #search-input,
    #password-input,
    button {
        width: 100%;
        border-radius: 8px;
    }
}

