* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #1f2937;
    background: #f5f7fb;
}

body {
    margin: 0;
    min-height: 100vh;
}

.page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.card {
    width: 100%;
    max-width: 520px;

    background: #ffffff;

    padding: 42px;

    border-radius: 24px;

    box-shadow:
        0 18px 60px
        rgba(17, 24, 39, 0.12);
}

.logo {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    padding: 10px 16px;

    border-radius: 12px;

    color: #ffffff;
    background: #e11d48;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

h1 {
    margin: 0;

    font-size: 36px;
    line-height: 1.15;
}

.subtitle {
    margin: 14px 0 30px;

    color: #6b7280;

    font-size: 16px;
    line-height: 1.6;
}

.form {
    display: grid;

    gap: 12px;
}

.label {
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;

    padding: 16px 18px;

    border: 1px solid #d1d5db;
    border-radius: 14px;

    outline: none;

    font-size: 16px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus {
    border-color: #e11d48;

    box-shadow:
        0 0 0 4px
        rgba(225, 29, 72, 0.12);
}

button {
    margin-top: 4px;

    padding: 16px 18px;

    border: 0;
    border-radius: 14px;

    color: #ffffff;
    background: #111827;

    font-size: 16px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform 0.15s,
        opacity 0.15s;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled {
    cursor: wait;

    opacity: 0.65;
}

.result {
    margin-top: 26px;

    padding: 24px;

    border-radius: 18px;
}

.result.hidden {
    display: none;
}

.result.loading {
    text-align: center;

    color: #4b5563;
    background: #f9fafb;
}

.result.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.result.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.result h2 {
    margin: 10px 0 18px;

    font-size: 22px;
}

.result p {
    margin: 0;

    line-height: 1.55;
}

.status-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    font-size: 28px;
    font-weight: 800;
}

.success-icon {
    background: #16a34a;
}

.error-icon {
    background: #e11d48;
}

.info-block {
    display: grid;

    gap: 8px;

    margin-top: 16px;

    padding: 16px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.72);
}

.info-label {
    color: #6b7280;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profiles {
    display: grid;

    gap: 8px;
}

.profile-name {
    font-weight: 800;
}

.profile-name.empty {
    color: #9a3412;
}

.loader {
    width: 30px;
    height: 30px;

    margin: 0 auto 12px;

    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 600px) {
    .page {
        padding: 16px;
    }

    .card {
        padding: 28px 20px;

        border-radius: 20px;
    }

    h1 {
        font-size: 30px;
    }
}
