:root {
    --brand-blue: #104068;
    --text-color: #000000;
    --shadow: 0 0 20px 0 rgba(0, 0, 0, 0.11);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Aktiv Grotesk', sans-serif;
    background: #FFFFFF;
    color: var(--text-color);
    line-height: 1.5;
}

/* Loading container */
.loading-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #FFFFFF;
    box-shadow: var(--shadow);
    padding: 40px 36px;
    position: relative;
    z-index: 10;
    height: 123px
}

.header-content {
    max-width: 1280px;
    margin: 0 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-image,
.brand-logo {
    width: 160px;
    padding-bottom: 2px;
}

.tagline {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-top: 2px;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page-content {
    text-align: center;
    max-width: 1280px;
    width: 100%;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

/* Progress spinner */
.progress-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid var(--brand-blue);
    border-bottom: 3px solid var(--brand-blue);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    margin: 0 auto 8px auto;
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading text */
.loading-text {
    text-align: center;
    width: 100%;
}

.loading-text h1 {
    font-size: 27px;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 33px;
}

.loading-text p {
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.loading-text small {
    font-size: 14px;
    color: #999999;
    font-family: monospace;
}

/* Error message */
.error-message {
    text-align: center;
    padding: 32px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    max-width: 500px;
}

/* Utility */
.hidden {
    display: none !important;
}

.error-message h2 {
    color: #DC2626;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.error-message p {
    color: #7F1D1D;
    font-size: 16px;
    margin-bottom: 24px;
}

.retry-button {
    background: #DC2626;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.retry-button:hover {
    background: #B91C1C;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 32px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    max-width: 500px;
}

.success-icon {
    font-size: 48px;
    color: #16A34A;
    margin-bottom: 16px;
}

.success-message h1 {
    color: #15803D;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.success-message p {
    color: #166534;
    font-size: 16px;
    margin-bottom: 8px;
}

.success-message strong {
    font-weight: 600;
    font-family: monospace;
    background: #E5E7EB;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .loading-text h1 {
        font-size: 24px;
        line-height: 30px;
    }

    .loading-text p {
        font-size: 16px;
        line-height: 22px;
    }

    .main-content {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .loading-text h1 {
        font-size: 20px;
        line-height: 26px;
    }

    .loading-text p {
        font-size: 14px;
        line-height: 20px;
    }
}