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

    background: #080c12;
    color: #f4f7fb;
}

* {
    box-sizing: border-box;
}

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: 460px;

    background: #101720;

    border: 1px solid #273342;
    border-radius: 22px;

    padding: 36px;

    box-shadow:
        0 24px 80px
        rgba(0, 0, 0, 0.4);
}

.brand {
    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.24em;

    margin-bottom: 24px;
}

h1 {
    margin: 0 0 12px;

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

.intro {
    color: #9eabba;

    line-height: 1.6;

    margin-bottom: 30px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;
}

.username-box {
    display: flex;
    align-items: center;

    border: 1px solid #334253;
    border-radius: 12px;

    background: #0b1118;

    padding: 0 14px;
}

.username-box span {
    color: #8391a0;

    font-size: 18px;
}

input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;
    color: #ffffff;

    font-size: 17px;

    padding: 15px 8px;
}

button {
    width: 100%;

    margin-top: 18px;

    border: 0;
    border-radius: 12px;

    padding: 15px 18px;

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

    cursor: pointer;
}

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

.status {
    min-height: 28px;

    margin-top: 18px;

    line-height: 1.5;
}

.status.error {
    color: #ff9c9c;
}

.status.success {
    color: #9ef0bd;
}

.security {
    margin-top: 28px;

    border-top: 1px solid #273342;

    padding-top: 22px;

    font-size: 13px;
    color: #8e9baa;
}

.security strong {
    color: #dce6f1;
}

.security p {
    margin-bottom: 0;

    line-height: 1.5;
}

.account-card {
    max-width: 760px;
}

.device-list {
    margin-top: 28px;
}

.device-panel {
    margin-top: 18px;
    padding: 20px;

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

    background: #0b1118;
}

.device-label {
    margin-top: 18px;
    margin-bottom: 7px;

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

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: #8391a0;
}

.device-meta {
    font-size: 13px;
    line-height: 1.5;

    color: #8e9baa;

    overflow-wrap: anywhere;
}

.safety-code {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 16px;
    line-height: 1.8;

    word-spacing: 4px;

    overflow-wrap: anywhere;
}

.fingerprint {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 12px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.danger-button {
    margin-top: 14px;
}

.contacts-card {
    max-width: 820px;
}

.contacts-navigation {
    margin-bottom: 28px;
}

.contacts-navigation a {
    text-decoration: none;
}

.contacts-section {
    margin-top: 30px;
}

.contact-panel {
    margin-top: 18px;
    padding: 20px;

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

    background: #0b1118;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.identity-badge {
    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.identity-good {
    border: 1px solid #2c8f57;
}

.identity-warning {
    border: 1px solid #9a7b25;
}

.identity-good-text {
    margin-top: 12px;
    font-size: 13px;
}

.contact-ready {
    font-size: 13px;
}

.contact-warning {
    font-size: 13px;
}

.identity-change-warning {
    margin-top: 16px;
    padding: 16px;

    border: 1px solid #9a7b25;
    border-radius: 12px;
}

.warning-button {
    margin-top: 12px;
}

.contact-device {
    margin-top: 10px;
    padding: 12px;

    border: 1px solid #1d2834;
    border-radius: 10px;
}

#lookup-result {
    margin-top: 18px;
}

#contacts-list {
    margin-top: 12px;
}


.account-navigation {
    margin: 18px 0 28px;
}

.account-navigation a {
    display: inline-block;

    padding: 10px 16px;

    border: 1px solid #273342;
    border-radius: 10px;

    text-decoration: none;

    font-weight: 600;
}

