/* Shared styles for device pairing pages (deviceCode and pairDeviceCode) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #8b1538 50%, #6a1b9a 75%, #2d1b69 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
}

.container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
}

.device-card,
.result-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #222;
}

.logo {
    margin-bottom: 24px;
}

.logo img {
    max-width: 300px;
    height: auto;
}

.title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ff6a00;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.code-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 12px;
    color: #111;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.code-input::placeholder { color: #999; letter-spacing: normal; }

.submit-btn,
.btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn { width: auto; }

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

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

.btn-primary { background: linear-gradient(45deg, #ff6b6b, #ee5a24); color: #fff; }
.btn-secondary {
    background: #17a2b8;
    color: #ffffff;
    border: 1px solid #17a2b8;
}

.error-message {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-links { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.auth-links p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.auth-links a { color: #ff6b6b; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.auth-links a:hover { color: #ffffff; }

.auth-actions {
    margin-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    animation: fade-in 0.35s ease;
}

.auth-actions__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 107, 107, 0.15);
    color: #d946ef;
    font-weight: 600;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.25px;
}

.auth-actions__code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #ec4899;
    font-size: 14px;
}

.auth-actions__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e2433;
    margin: 16px 0 6px;
}

.auth-actions__subtitle {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.auth-actions__buttons {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-actions__buttons a {
    color: #fff;
    width: 90%;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    padding: 12px;
}

.auth-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-card__icon {
    font-size: 28px;
}

.auth-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-card__title {
    font-size: 16px;
    font-weight: 600;
}

.auth-card__subtitle {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.auth-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-card--primary {
    border: none;
    background: linear-gradient(120deg, rgba(236,72,153,0.9), rgba(239,68,68,0.9));
    color: #fff;
}

.auth-card--primary .auth-card__icon,
.auth-card--primary .auth-card__title,
.auth-card--primary .auth-card__subtitle,
.auth-card--primary .auth-card__cta {
    color: #ffffff;
}

.auth-card--primary .auth-card__cta {
    opacity: 0.9;
}

.auth-card--outline {
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.auth-card--outline:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.status-info,
.user-info {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #222;
}

.device-code {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ff6b6b;
}

.status-icon { width: 80px; height: 80px; margin: 0 auto 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: bold; }
.success-icon { background: linear-gradient(45deg, #00b894, #00cec9); color: #ffffff; }
.error-icon { background: linear-gradient(45deg, #e17055, #d63031); color: #ffffff; }

.action-buttons { display: flex; gap: 15px; margin-top: 30px; }
a.btn {text-decoration: none; display: inline-block; width: 50%; font-size: 0.8125rem;}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .container { padding: 15px; }
    .device-card, .result-card { padding: 30px 20px; }
    .title { font-size: 24px; }
    .action-buttons { flex-direction: row; }
    .btn { margin-bottom: 10px; }
    .auth-actions { text-align: center; }
    .auth-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .auth-card__cta { justify-self: center; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


