
* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: Arial, Helvetica, sans-serif;
    background: #1c1c1c;
    color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.logo {
    margin: 0 0 28px;
    color: #e38707;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
}

.block {
    padding: 32px 28px;
    background: #131413;

    border: 1px solid #3c3020;
    border-radius: 14px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.block h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
}

.description {
    margin: 0 0 28px;
    color: #a5a5a5;
    font-size: 15px;
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e4e4e4;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;

    color: #ffffff;
    background: #202020;

    border: 1px solid #3a3a3a;
    border-radius: 8px;
    outline: none;

    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
    color: #777777;
}

.input:focus {
    border-color: #e38707;
    box-shadow: 0 0 0 3px rgba(227, 135, 7, 0.12);
}

.button {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 16px;

    background: #e99a19;
    color: #17130c;

    border: none;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.button:hover {
    background: #ffb638;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.field-help, .privacy {
    margin: 8px 0 0;
    color: #909090;
    font-size: 12px;
    line-height: 1.5;
}

.privacy { margin-top: 14px; text-align: center; }

.field-status, .page-status {
    margin: 8px 0 0;
    color: #b5b5b5;
    font-size: 13px;
    line-height: 1.5;
}

.field-status:empty, .page-status:empty { display: none; }
.field-status[data-state="success"], .linked-title { color: #9bd6a5; }
.field-status[data-state="error"], .page-status { color: #ffbc9e; }
.input[aria-invalid="true"] { border-color: #d67c5a; }
.linked-account { text-align: left; }
.linked-title { margin: 0 0 18px; font-weight: 600; }
.linked-account dl { margin: 0 0 18px; }
.linked-account dt { margin-top: 14px; color: #909090; font-size: 12px; }
.linked-account dd { margin: 5px 0 0; font-size: 15px; overflow-wrap: anywhere; }

.button-secondary {
    background: #292620;
    color: #e99a19;
    border: 1px solid #51412b;
}

.button-secondary:hover { background: #383026; }

.retry-button {
    margin-top: 10px;
    padding: 6px;
    border: 0;
    background: transparent;
    color: #e99a19;
    cursor: pointer;
    text-decoration: underline;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #ffbd59;
    outline-offset: 4px;
}

.help {
    margin: 24px 0 0;
    color: #909090;
    font-size: 13px;
    line-height: 1.6;
}

a {
    color: #e99a19;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ffbd59;
    text-decoration: underline;
}

.footer {
    margin-top: 24px;
    color: #666666;
    font-size: 12px;
}

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: 12px;

    width: min(360px, calc(100vw - 32px));
    padding: 16px;

    background: #171717;
    border: 1px solid #e38707;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);

    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    background: rgba(227, 135, 7, 0.15);
    color: #ffb638;
    border-radius: 50%;

    font-size: 20px;
    font-weight: bold;
}

.notification strong {
    color: #ffb638;
    font-size: 15px;
}

.notification p {
    margin: 5px 0 0;
    color: #b5b5b5;
    font-size: 13px;
    line-height: 1.4;
}

.notification-close {
    margin-left: auto;
    align-self: flex-start;

    padding: 0;
    background: transparent;
    border: none;

    color: #888;
    font-size: 23px;
    cursor: pointer;
}

.notification-close:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .block { padding: 28px 20px; }
    .notification { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
