/* ===== Auth Navbar ===== */
.auth-container {
    list-style: none;
}

.auth-nav-btn {
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    border-radius: 6px;
    padding: 8px 16px;
    transition: background 0.2s, color 0.2s;
}

.auth-signin-btn {
    background: #1e3a5f;
    color: #fff;
}

.auth-signin-btn:hover {
    background: #2c5282;
}

.auth-signout-btn {
    background: transparent;
    color: #718096;
    padding: 6px 10px;
    font-size: 12px;
}

.auth-signout-btn:hover {
    background: #f7fafc;
    color: #e53e3e;
}

.auth-user-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-user-email {
    font-size: 13px;
    color: #4a5568;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Sync Status Dot ===== */
.auth-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sync-synced {
    background: #48bb78;
}

.sync-syncing {
    background: #ecc94b;
    animation: sync-pulse 1s infinite;
}

.sync-offline {
    background: #a0aec0;
}

.sync-pending {
    background: #ed8936;
}

@keyframes sync-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== Auth Modal ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.auth-modal-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-header h3 {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.auth-modal-header p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 24px;
}

/* ===== Auth Form Fields ===== */
.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.auth-field input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 8px;
}

/* ===== Auth Messages ===== */
.auth-error {
    background: #fff5f5;
    color: #c53030;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px solid #feb2b2;
}

.auth-success {
    background: #f0fff4;
    color: #276749;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px solid #9ae6b4;
}

.auth-modal-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

.auth-modal-footer a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}

.auth-modal-footer a:hover {
    text-decoration: underline;
}

.auth-modal-footer p {
    margin-bottom: 6px;
}

/* ===== Migration Banner ===== */
.sync-migration-banner {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sync-migration-banner p {
    font-size: 14px;
    color: #2b6cb0;
    margin: 0;
}

.sync-migration-actions {
    display: flex;
    gap: 8px;
}

.sync-migration-actions .btn {
    font-size: 13px;
    padding: 6px 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .auth-modal-card {
        padding: 24px;
        margin: 12px;
    }

    .auth-user-email {
        display: none;
    }

    .auth-user-nav {
        gap: 4px;
    }

    .sync-migration-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
