:root {
    --color-primary: #047c35;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-grey: #636363;
    --color-error: #e85b5b;
    /* Training-environment ground, matching ConnectFrontEnd's $training-bg-color. */
    --color-training: #fff1cd;
}

body {
    font-family: 'Work Sans', Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.training-mode {
    background-color: var(--color-training);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 0 auto;
}

.icon {
    width: 150px;
    height: 150px;
}

.error-icon {
    width: 70px;
}

.title {
    font-size: 32px;
    font-weight: 600;
}

.message {
    color: var(--color-grey);
    font-size: 14px;
    font-weight: 400;
    padding: 40px 0 40px;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding: 10px 0;
}

.footer__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer__logos img {
    width: auto;
    height: 40px;
}

.footer__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grey);
    letter-spacing: 0.03em;
}

.brand-logo {
    width: 180px;
    height: auto;
    margin: 24px auto 0;
}

.retry-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding: 15px;
    border-radius: 5px;
    background: var(--color-primary);
    border: 0px;
    margin-bottom: 30px;
    max-width: 400px;
    cursor: pointer;
}

.retry-button--text {
    color: var(--color-white);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

.retry-button.loading {
    opacity: 0.8;
    cursor: wait;
}

.response-text {
    margin-top: 0px;
    font-size: 14px;
}

.response-text.response-success {
    color: var(--color-primary);
}

.response-text.response-error {
    color: var(--color-error);
}
