@font-face {
    font-family: 'MicroExtend';
    src: url('fonts/MicroExtendFLF-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: #fafafa;
    color: #171717;
    min-height: 100vh;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
    z-index: 10;
}

.topbar h1 {
    font-family: 'MicroExtend', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

button, input {
    font-size: 0.8rem;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 1px;
    background: #fff;
    color: #171717;
    outline: none;
    transition: none;
}

button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
}

input {
    font-family: inherit;
}

button:hover:not(:disabled) {
    border-color: #171717;
    background: #171717;
    color: #fff;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

input:focus {
    border-color: #999;
    box-shadow: 0 0 0 1px #999;
}

.address {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 1rem;
    word-break: break-all;
    font-family: monospace;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

#username-form {
    margin-top: 1.2rem;
}

.username-input-wrap {
    position: relative;
    margin-bottom: 0.5rem;
}

.username-input-wrap input {
    width: 100%;
    padding-right: 2.2rem;
}

#username-indicator {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

#username-indicator svg {
    display: block;
    width: 16px;
    height: 16px;
}

.status {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    color: #888;
    min-height: 1.2em;
}

.status.error {
    color: #e00;
}

.account-info {
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    width: 100%;
}

.account-info td {
    padding: 0.25rem 0;
}

.account-info .label {
    color: #888;
    padding-right: 1rem;
    white-space: nowrap;
    width: 1%;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-info td:last-child {
    color: #171717;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.75rem;
}

.account-info td.no-transform {
    font-family: 'Inter', sans-serif;
}

.action-buttons {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.5rem;
}

#btn-logout {
    background: transparent;
    border-color: #e5e5e5;
    color: #666;
}

#btn-logout:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #171717;
}

a.btn, #btn-launch, #btn-open-app {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    color: #fff;
    background: #171717;
    padding: 8px 14px;
    border: 1px solid #171717;
    border-radius: 1px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: none;
}

a.btn:hover, #btn-launch:hover, #btn-open-app:hover {
    background: #333;
    border-color: #333;
}

.redirect-text {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 1.2rem;
}

#step-redirect {
    text-align: center;
}
