/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.yellow-header {
    background: #ffd700;
    padding: 15px 0;
    margin-bottom: 0;
    border-bottom: none;
}

.yellow-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-align: left;
    padding-left: 20px;
    font-family: 'Georgia', serif;
}

/* Main Content */
main {
    flex: 1;
    margin-top: 40px;
}

.activation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Panel */
.left-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.national-post-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    font-family: 'Georgia', serif;
}

.maple-leaf {
    font-size: 1.5rem;
    margin: 0 10px;
    color: #ff6b35;
}



.left-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #00d4ff;
    text-align: center;
}

.steps {
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
    color: #ffffff;
}

.step-text {
    font-size: 1.1rem;
    color: #333333;
}



/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: fit-content;
}

.user-code-display {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.user-code-display h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.user-code {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.code-format {
    color: #b8c6db;
    font-size: 1rem;
}

.activation-form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activation-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #00d4ff;
    text-align: center;
}

/* Error Container */
.error-container {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.error-icon {
    font-size: 1.5rem;
    color: #ff3b30;
    flex-shrink: 0;
}

.error-content h4 {
    color: #ff3b30;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.error-content p {
    color: #ff8a80;
    font-size: 1rem;
}

/* Form Styles */
.activation-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #333333;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

.form-group input::placeholder {
    color: #999999;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #666666;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Content Title and Line */
.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.yellow-line {
    height: 3px;
    background: #ffd700;
    margin-bottom: 25px;
    border-radius: 2px;
}

/* Content Boxes */
.content-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.content-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.content-box p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
}

/* Verification Info */
.verification-info {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-info h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.verification-url {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.verification-url:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

.verification-note {
    color: #b8c6db;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8c6db;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .activation-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .left-panel, .right-panel {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h2 {
        font-size: 1.3rem;
    }
    
    .user-code {
        font-size: 2.5rem;
    }
    
    .left-panel, .right-panel, .user-code-display, .activation-form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .user-code {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .form-group input {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}

/* Animation for countdown */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#countdown {
    animation: pulse 2s infinite;
    color: #00d4ff;
    font-weight: bold;
}

/* Focus styles for TV navigation */
.activation-form input:focus,
.submit-btn:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .activation-form input {
        border-width: 3px;
    }
    
    .submit-btn {
        border: 2px solid #ffffff;
    }
}
