/* assets/css/pages/pairing.css */
/* Dark theme matching monitor.beoee.com aesthetic */

.page-pairing {
    background-color: #242424;
    color: rgba(255, 255, 255, 0.87);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pairing-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.logo {
    max-width: 100px;
    width: 100%;
    margin-bottom: 2rem;
    height: auto;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.pairing-panel {
    background-color: #1d1d1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

/* Code Display */
.pairing-code {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 1rem 0;
}

@media (max-width: 576px) {
    .pairing-code {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}

/* Timer */
.hero-timer {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 1rem;
}

/* Progress Bar */
.progress-wrapper {
    margin: 1rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #0d6efd;
    transition: width 1s linear;
    border-radius: 4px;
}

/* Loading Spinner */
.spinner-wrapper {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-text {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Success State */
.success-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
    display: block;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #198754;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

/* Error State */
.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
    display: block;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.error-message {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-retry {
    background: linear-gradient(145deg, #2b2b2b, #1f1f1f);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-retry:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.4), 0 4px 14px -2px rgba(0, 0, 0, 0.5);
}

/* Help Text */
.help-text {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.d-none {
    display: none !important;
}

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