@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #E6F5CF;
    --text-primary: #1A1D20;
    --text-secondary: #4A4D50;
    --btn-bg: #1A1D20;
    --btn-bg-hover: #313539;
    --btn-text: #FFFFFF;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-ease: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-inter);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Centralized layout container */
.container {
    width: 100%;
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo section */
.logo-container {
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 16px;
    fill: currentColor;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: -0.01em;
}

/* Views display and animations */
.view-state {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: var(--transition-ease);
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.view-state.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* SVG Status Icon */
.status-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Typography styling */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

p.message {
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

/* Square Button styling */
.btn {
    font-family: var(--font-inter);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 0px; /* Completely square */
    border: none;
    cursor: pointer;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    transition: var(--transition-ease);
    width: auto;
    min-width: 200px;
    outline: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--btn-bg-hover);
}

.btn:active {
    transform: scale(0.98);
}

/* Loading spinner */
.loader {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(26, 29, 32, 0.1);
    border-left-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .logo-container {
        margin-bottom: 50px;
    }
    h1 {
        font-size: 1.5rem;
    }
    p.message {
        font-size: 0.88rem;
    }
}
