* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #101820;
    color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 2.5rem 2rem;
    text-align: center;
}

h1 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.hint {
    margin: 0 auto 1.75rem;
    max-width: 420px;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.instructions {
    margin: 1.75rem auto 2rem;
    text-align: left;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    max-width: 460px;
}

.instructions h2 {
    margin-top: 0;
    font-size: 1.15rem;
    color: #f8fafc;
}

.instructions ol {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.instructions li {
    margin-bottom: 0.6rem;
}

.register {
    margin: 0 auto 2rem;
    text-align: left;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    max-width: 460px;
}

.register h2 {
    margin-top: 0;
    font-size: 1.15rem;
    color: #f8fafc;
}

.register-hint {
    color: #cbd5f5;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.register textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    font-family: monospace;
    resize: vertical;
}

.register button {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #4ade80;
    color: #0b1120;
    cursor: pointer;
    transition: background 0.2s ease;
}

.register button:hover {
    background: #22c55e;
}

.register-result {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 8px;
    display: none;
    color: #e2e8f0;
    line-height: 1.4;
}

.register-result.visible {
    display: block;
}

.register-result[data-state="success"] {
    border: 1px solid rgba(74, 222, 128, 0.6);
    color: #bbf7d0;
}

.register-result[data-state="error"] {
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.actions-block {
    margin: 0 auto 2rem;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.actions button {
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #38bdf8;
    color: #0b1120;
    cursor: pointer;
    transition: background 0.2s ease;
}

.actions button:hover {
    background: #0ea5e9;
}

.result {
    padding: 1.15rem 1.25rem;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 10px;
    min-height: 92px;
    line-height: 1.55;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result[data-state="info"] {
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

.result[data-state="working"] {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(37, 99, 235, 0.2);
    color: #dbeafe;
    transform: translateY(-1px);
}

.result[data-state="success"] {
    border-color: rgba(74, 222, 128, 0.6);
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    transform: translateY(-1px);
}

.result[data-state="error"] {
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.link-button {
    margin-top: 1rem;
    background: none;
    border: none;
    color: #60a5fa;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.link-button:hover {
    color: #93c5fd;
}
