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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    background: #2d3748;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #f6e05e;
}

.logo h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo p {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Card styles */
.welcome-card,
.pin-card,
.download-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.welcome-card:hover,
.pin-card:hover,
.download-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Icon styles */
.icon-container,
.success-icon {
    margin-bottom: 2rem;
    color: #2d3748;
}

.icon-container svg,
.success-icon svg {
    filter: none;
}

/* Typography */
h2 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

p {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.instruction {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #f6e05e;
    font-weight: 500;
    margin: 1.5rem 0;
}

/* Button styles */
.btn-primary,
.btn-secondary,
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem;
}

.btn-primary {
    background: #f6e05e;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(246, 224, 94, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: #ecc94b;
    box-shadow: 0 4px 12px rgba(246, 224, 94, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
    border: 2px solid #cbd5e0;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #cbd5e0;
    color: #1a202c;
}

.btn-download {
    background: #f6e05e;
    color: #2d3748;
    box-shadow: 0 4px 15px rgba(246, 224, 94, 0.4);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    font-weight: 700;
}

.btn-download:hover {
    background: #ecc94b;
    box-shadow: 0 6px 20px rgba(246, 224, 94, 0.6);
}

/* PIN input styles */
.pin-input-container {
    position: relative;
    margin: 2rem 0;
}

.pin-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.pin-input:focus {
    outline: none;
    border-color: #f6e05e;
    background: white;
    box-shadow: 0 0 0 3px rgba(246, 224, 94, 0.1);
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.dot.filled {
    background: #f6e05e;
}

/* Error message */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #f56565;
    margin: 1rem 0;
    font-weight: 500;
}

/* Button group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Download instructions */
.download-instructions {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
    text-align: left;
    border-left: 4px solid #f6e05e;
}

.download-instructions ol {
    margin-left: 1.5rem;
    color: #4a5568;
}

.download-instructions li {
    margin-bottom: 0.5rem;
}

/* Download button container */
.download-button-container {
    margin: 2rem 0;
}

/* Support info */
.support-info {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #2d3748;
    margin: 2rem 0;
}

.support-info h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.support-info p {
    color: #4a5568;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #2d3748;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 3px solid #f6e05e;
}

.footer p {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .welcome-card,
    .pin-card,
    .download-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-download {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .pin-input {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }
}

@media (max-width: 480px) {
    .welcome-card,
    .pin-card,
    .download-card {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .pin-input {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }
}

/* Simple section transitions */
.welcome-section,
.pin-section,
.download-section {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Loading animation for PIN verification */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f6e05e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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